Grow your CSS skills. Land your dream job.

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

    http://petrowest.squarespace.com/fleet/

    # 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.
    http://petrowest.squarespace.com/fleet/

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".