The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

Center text in chart

  • # July 28, 2012 at 1:08 pm

    I am trying to get all my text to be in the middle of the rows. Right now they are towards the top.
    Thanks for the help

    # July 28, 2012 at 1:57 pm

    You know this is where you should be using a table, right? The divs and spans have zero semantic value – screenreaders and search engines are going to have a tough time deciphering that data.

    not tested, but try adding vertical-align: middle; to the spans

    # July 28, 2012 at 2:27 pm

    Cool thanks. I ended up inserting line-height: and that did the trick!
    – I am now just looking to center the rest of the text on the page so it sits more in the middle and eliminates the deadspace on the right hand side.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed