You are here: Why is vertical centering such a pain in the ass? « HTML « IT news, forums, messages
Why is vertical centering such a pain in the ass?

Posted by Ciaran on 05/16/07 15:02

What ever happened to the easy idea that you could just tag something
valign='middle' and it would align to the middle of the cell?? Don't
get me wrong, CSS is a dream come true for anyone who's worked without
it and I'm well used to the ins and outs of it by now but some things
that used to be so easy are just such a pain in the ass now!
Can someone please give me a hand vertical centering this bit of text
in a div without extra markup?

<div style="border-top: solid 1px #999999;text-align:center; font-size:
7pt; height:3%;>bit of text</div>

I've tried, vertical align, line height, various display rules,
padding values and position:relative.

Something as basic as this really should not be this difficult to pull
off!
Cheers,
Ciarán

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация