css - Dreamweaver CS6 Fluid Grid: width fixed with padding -
i new dreamweaver fluid grid. set width 100% , change margins 0. when add padding, begins scroll right. want use padding because want have border of space around text/image.i want width stay fixed.
please give me solutions. in advance.
the padding getting added width. fix add .css file
html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; }
this make padding occur within width rather adding it
https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/