As far as i know and i think it's the standard padding will always add up to the width you specify in your css, for for example:
.content{
width:100px;
padding:10px;
}
<div class="content"></div>
This div will have 120px actual width. This standard applies to IE Firefox Opera browsers. The problem is in safari it's not the same and this div will have the 100px overall width with 10px padding inside.
Here is my situation i need to solve:
.container{
width:1000px;
}
.content{
width:100%;
padding:10px;
}
<div class="container">
<div class="content"></div>
</div>
I need the content div to have overall width of 1000px like his parent and have 10px padding inside. But the above code only works in safari and in ie and firefox and opera it will become 1020px overall width.