Why is vertical centering such a pain in the ass?

Why is vertical centering such a pain in the ass?

am 16.05.2007 17:02:15 von cronoklee

What ever happened to the easy idea that you could just tag something
valign=3D'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?

7pt; height:3%;>bit of text


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=E1n

Re: Why is vertical centering such a pain in the ass?

am 16.05.2007 17:17:12 von John Hosking

Ciaran wrote:

> Can someone please give me a hand vertical centering this bit of text
> in a div without extra markup?
>
>

Index | Impressum | Datenschutz | XODOX