homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Browsers / Google Chrome Browser
Forum Library, Charter, Moderator: open

Google Chrome Browser Forum

Vertical align Text

 7:58 pm on Feb 4, 2011 (gmt 0)

Can anyone advise what the css code for vertically aligning text is in Chrome? or that will work with IE, Firefox etc as these all do align text on my website vertically... but chrome doesn't




 8:02 pm on Feb 4, 2011 (gmt 0)

How are you aligning it?


 8:20 pm on Feb 4, 2011 (gmt 0)

Currently using: vertical-align: middle;

which works for other browsers...


 8:40 pm on Feb 4, 2011 (gmt 0)

vertical-align is not meant to apply for centering text. This is an often misunderstood style, and in all fairness it is a shortcoming of CSS2. There is an example here:

Which uses:

display: table-cell;
vertical-align: middle

Global Options:
 top home search open messages active posts  

Home / Forums Index / Browsers / Google Chrome Browser
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved