Topic: Vertical Centering |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: Yes |
posted 03-21-2008 05:50
I've tried a few various vertical centering methods. Most have problems in various browsers. What method do you guys use to vertical center a page, or an element? Here is a link to some good verical centering info that I've been working through. |
Paranoid (IV) Inmate From: f(x) |
posted 03-21-2008 16:02
There is no way (to my knowledge) to get exact liquid centering without the use tables. Here's a page that can be used as an example of the method I used. |
Paranoid (IV) Inmate From: Norway |
posted 03-21-2008 16:13 |
Paranoid (IV) Inmate From: Cold Sweden |
posted 03-21-2008 18:31
quote:
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> |
Paranoid (IV) Inmate From: f(x) |
posted 03-22-2008 00:07 |
Paranoid (IV) Inmate From: Cold Sweden |
posted 03-22-2008 08:27
quote:
|
Paranoid (IV) Inmate From: Florida |
posted 03-23-2008 21:34
Yes, there are methods that work up to (down to?) IE6, but they get progressively lamer, so it's best to state exactly what sort of vertical centering you need so you can choose the least lame one (or so someone can inform you of the least lame one they know of). |
Nervous Wreck (II) Inmate From: Bangalore |
posted 04-04-2008 19:11
ty was looking for this too! |