Home › Forums › CSS › Page width – cant get normally paddings › Re: Page width – cant get normally paddings
November 27, 2012 at 5:00 am
#115577
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+ */
}