Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to verticllay align text in a div-box?
July 17, 2005, 4:23 pm
rate this thread
I want to create a footer as a narrow line at the bottom of the screen
and am therefore using a div-box formatted with "height:25px;".
The line of text in it though, is aligned at the top the the footerbox,
and I've tried to get it vertically middled using
"vertical-align:middle;" on the the div-box, which didn't work. The next
thing I tried was to wrap the line of text into a <span> and then
applied the "vertical-align:middle;" on that, but neither did that work.
Can someone tell me the solution please?