Padding does not effect to total width of block, css3 makes its easy

Hello ,

Use this css3 new feature for remove the effect of padding on width of any block.

Add this line in starting of your code and this will remove padding effect from total width of block.

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}

Its a box-sizing property of css3.

Thanks

Comments

Popular posts from this blog