Topic: Vertical Centering (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Yes |
![]() 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) |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: Cold Sweden |
![]() 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) |
![]() |
Paranoid (IV) Inmate From: Cold Sweden |
![]() quote:
|
Paranoid (IV) Inmate From: Florida |
![]() 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 |
![]() ty was looking for this too! |