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 8395905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:24:48+00:00 2026-06-09T20:24:48+00:00

I am currently working on a tabbed layout for one my site’s pages and

  • 0

I am currently working on a tabbed layout for one my site’s pages and im having a problem with aligning text vertically in different tabs since some of it spans one line and some spans two. I need to position the text in the middle of each tab, and not to have the text aligned by the first line.

I’ve tried Valign and Line-height so far but they are not very helpful.

  • 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-09T20:24:50+00:00Added an answer on June 9, 2026 at 8:24 pm

    You should use vertical-align: middle, but realize that in order for that to be applied you need to use display: table-cell.

    For example, if you use something similar to this HTML structure:

    <div class="container">
        <span>Some Text</span>
    </div>
    

    Then you could get the desired centering using:

    .container {
        text-align: center;
        display:table-cell; 
        vertical-align:middle
    }
    

    Here is a JSFiddle example.

    ​

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

Sidebar

Related Questions

I am currently working on a one-page layout for a website. Each section of
Currently working on a little Windows Phone (7.5) application and one of the pages
I'm currently working on a tool that has a tabbed section that toggles width
Currently working on a site built in Django and i'm getting an issue when
I am working on a site for a client that has jquery driven tabbed
Am currently working on a site that uses a lot of cfwindow objects and
Im currently working with two actors in scala. One, the producer , produces some
Im currently working on a site which will contain a products catalog. I am
Am currently working on a web application which receives the encoded text from the
I am currently working on a project and my goal is to locate text

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.