http://webdesignpond.co.uk/wdp/tips-tutorials/how-to-vertically-center-a-site/
Next comes the part of code that will center the site:
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
This works by setting the height of the vertical div to 50% minus half the size of the wrappers height, by floating this to the left and then using the clear:left; within the wrapper, the wrapper div is then pushed down underneath the vertical div, causing it to be vertically centered.
Step Two – The HTML
|
| |
|
| |
|
| |
|
| |
There you have it a vertically centered site.
0 comments:
Post a Comment