*{ -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -box-sizing:border-box; }
div{ width:900px; }
my Question is ok i add a padding-right than it wont effect the width of the div ok its fine but when i add margin-right the size gets increased does box-sizing doesnot work for margin or what is it how do a make it not chance on margin too Thanks
Margin sits outside of the rendered box, so box-sizing has no effect on the margin.
box-sizing
ok thanks @joshuanhibbert
I found this helpful..
*{ -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -box-sizing:border-box; }
div{ width:900px; }
my Question is ok i add a padding-right than it wont effect the width of the div ok its fine but when i add margin-right the size gets increased does box-sizing doesnot work for margin or what is it how do a make it not chance on margin too Thanks
Margin sits outside of the rendered box, so
box-sizinghas no effect on the margin.ok thanks @joshuanhibbert
I found this helpful..