http://davidwalsh.name/horizontally-center-website-structure-css
small tip:
html
{
height: 100%;
margin-bottom: 0.01em;
}
Add this to your style to always have a scroll on the page. Otherwise the centered div will jump when switching from a page with a scroll to a page without. The width of the page is dependant of whether there is a scroll on a page or not.
No comments:
Post a Comment