|
|
#1 |
|
New Member
![]() Join Date: Mar 2011
Posts: 2
|
Hello,
I need to have contents shown in a box that is centered in the page exactly like this: johnpawson.com I'd like to know if it is possible to have simply a table that starts from a point at the top. But maybe with CSS there are more effective ways. Or any kind of solution will do. Any clue? Many thanks. |
|
|
|
|
|
#2 |
|
Platinum Member
![]() |
All they're doing is this:
The center div is 530px high. They set the position:relative and top:50%. Then, just set the margin to negative half the height. In this case, -265px. So it looks like this: margin-top:-265px; |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Mar 2011
Posts: 2
|
That's it!
Thanks! |
|
|
|
![]() |
| Tags |
| centered, layout, vertically |
| Thread Tools | |
| Display Modes | |
|
|