padding and margins

 

when the paddings and margins are added. the actual size of the div changes. the width grows as we add paddings and margins. There, it means 100% + 20 px padding. So, in order to fix the actual size of div, we need to add:
*{

margin:0;  //removes all the basic stylings

padding:0;

box-sizing: border-box;

}

Comments

Popular posts from this blog

python

flutter