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/


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -