Click to See Complete Forum and Search --> : vertical alignment with css


Vassil Catsarov
02-11-2005, 02:55 PM
How can I make a text appear in the middle of the layer height? Why
vertical-align: middle;
has no effect?

Pittimann
02-11-2005, 03:03 PM
Hi!

I was about to post something own, but I saw this:
http://www.webdeveloper.com/forum/showthread.php?s=&threadid=56382

Cheers - Pit

Vassil Catsarov
02-11-2005, 03:43 PM
Hi, Pittimann!
So, is it possible? I've found out for myself that adding
display: block;
Does the job when the layer contains multiple elements, i. e. floating images together with some text and I use padding-top: for the text, so I thought it would be possible.
Does it mean I have to include another layer with the text into the original layer to have the desired effect?
Is there also a way to align a certain element (a horizontal line) at the bottom of a window?