#Questions about margin

7 messages · Page 1 of 1 (latest)

woeful rain
#

If i remove the "margin:0px;" from .container, there will be a large empty space on the top. Why setting body and .img-container margin 0px is not enough?scrimba_coffee

neon kelp
#

Hi Amber! By default all elements have some padding and margin, to solve it you can 'reset' those values with this code:
* { padding: 0px; margin: 0px; }

woeful rain
viral geyser
woeful rain
viral geyser
#

It could also be related to margin collapse, since every element has its own margin, I suspect the .container margin might be collapsing with the .image-container margin