+ 3

space between divs

By default, there is a space between divs How to close this gap?

6th Nov 2021, 2:26 PM
Ali Nazarian
Ali Nazarian - avatar
2 Respuestas
+ 3
This is because of default padding and margin, so you can select div and set margin and padding to 0, or value you need. Most developer do "resets" by selecting all elements, or root or elements thay need.. * { margin: 0; padding: 0; } This is more about resets, with some example http://web.simmons.edu/~grovesd/comm244/notes/week4/css-reset
6th Nov 2021, 2:37 PM
PanicS
PanicS - avatar
+ 2
Open the developer panel in a browser and see what exactly indents. After this change css file (margin or padding)
6th Nov 2021, 3:50 PM
golovastik
golovastik - avatar