homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Browsers / Google Chrome Browser
Forum Library, Charter, Moderator: open

Google Chrome Browser Forum

    
Vertical align Text
Gemini23

5+ Year Member



 
Msg#: 4262912 posted 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

Thanks

 

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4262912 posted 8:02 pm on Feb 4, 2011 (gmt 0)

How are you aligning it?

Gemini23

5+ Year Member



 
Msg#: 4262912 posted 8:20 pm on Feb 4, 2011 (gmt 0)

Currently using: vertical-align: middle;

which works for other browsers...

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4262912 posted 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:
[w3.org...]

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