CSS Vertical
CSS Vertical
Out of context: Reply #8
- Started
- Last post
- 11 Responses
- myobie0
If only browsers supported css3 stuff, it's really easy.
iIf you got a div in the body, it would be:
body { display: table; }
div { display: table-cell; vertical-align: middle; }It might be possible to get away with:
If only browsers supported css3 stuff, it's really easy.
iIf you got a div in the body, it would be:
html { display: table; }
body { display: table-cell; vertical-align: middle; }Something like that will work in FF and Safari. Sometimes I use it and then I just put margin-top: 100px or use js for IE.
Sucks man. We need some forward movement on the css front.