Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8167513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:12:54+00:00 2026-06-06T20:12:54+00:00

I need to align the text inside the p tag to vertically middle. Since

  • 0

I need to align the text inside the p tag to vertically middle. Since I have given height for the p tag the single line text is vertically aligned to the top of the p tag but when there is 2 lines of description it is perfect.

Height 30px should remains the same. I am ending the content to 2 lines so height should be the same.

Here is the demo
http://jsfiddle.net/ydFy5/1/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:12:56+00:00Added an answer on June 6, 2026 at 8:12 pm

    Hey now you can define line-height:30px

    as like this

    p.event_desc{
        background: rgba(0,0,0,0.76);
        padding:4px;
        position:absolute;
        top: 0px;
        color: #ffffff;
        font: bold 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
        line-height: 30px;
        margin: 0 4px 0 0; width:93%; height:30px;
    }
    

    Live demo http://jsfiddle.net/ydFy5/10/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with the text-align justify inside a paragraph with format and
I need to have a single <li> element which has two buttons inside of
I want to align the text input field to align vertically I have two
I need to center some text inside a <div> or <span> tag. I've set
I have the following: CSS: .photo { overflow: hidden; display: table-cell; vertical-align: middle; text-align:
My problem is following: I need to align text inside DateTimePicker component to center.
I need to access the 48.20 Lac(s) text which is without any tag inside
i need to center the navigation links inside the div, and align it horizontally.
I need to center html content inside a div class=partners (top div with 2
i know that there is a lot of tutorials about verticaly align text inside

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.