I am trying to create my page, but for some reason, there is a small white spacing between my sections when margin and padding are set to 0. The only way to get rid of it is to give the elements a negative top or bottom margin. Am I missing something?
It’s caused by the vertical margins of the block elements within the green
<div>s (the headings and the lists, for example). They can “leak out” of their containers. Setting their top/bottom margins to 0 is an option.
use the following code in css file:->