Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Jochen Fuhrmann
October 6, 2003, 10:07 am
rate this thread
Re: vertical-align and div
Are you specifying position somewhere else? top and left only apply
when an element has a position value other than static (the default).
Because vertical-align only applies in two cases -
1. inline elements where it aligns the element relative to the
surrounding line of text
2. table cell elements where it aligns the content relative to the
It does not apply to block level elements.
You can convert a block element like <div> into a teble cell element
by using display: table-cell; but IE doesn't support that.
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
- — Previous thread in » HTML Markup Language