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

Google Chrome Browser Forum

    
Vertical align Text
Gemini23




msg:4262914
 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




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

How are you aligning it?

Gemini23




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

Currently using: vertical-align: middle;

which works for other browsers...

Fotiman




msg:4262929
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved