OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
Vertical Centering
This page's ID:
30136
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quote] [b]zavaboy said:[/b] There is no way (to my knowledge) to get exact liquid centering without the use tables. [/quote] There is. It works in Opera, Gecko-based browsers and WebKit/KHTML browsers. It doesn't work in IE6, and probably not IE7. I'm unsure about IE8. But one can hack around IE's lack of support. [code]<!doctype html> <style> div { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; border: 1px solid black; width: 100px; height: 100px; } </style> <div>hey</div>[/code] [url=http://tinyurl.com/3apc9k]Demo[/url]. [small](Edited by [url=http://www.ozoneasylum.com/user/2269]HZR[/url] on 03-21-2008 18:33)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »