Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Page width – cant get normally paddings Re: Page width – cant get normally paddings

#115577
Paulie_D
Member

Firstly, you should probably be using a reset or normalise css.

For a width as specified for the ‘page’ you should have

page {
width:1024px
padding:0 38px;
}

However, you should be aware that **normally** padding is ADDED to a specified width so the ACTUAL width will be 1100px.

To get round this you have to use change the way this is done with

* {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}