vertical alignment with css

liunx

Guest
How can I make a text appear in the middle of the layer height? Why
vertical-align: middle;
has no effect?Hi!

I was about to post something own, but I saw this:
<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?s=&threadid=56382">http://www.webdeveloper.com/forum/showt ... adid=56382</a><!-- m -->

Cheers - PitHi, 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?
 
Back
Top