@adram3l3ch
Posted
The gap is caused by the margin of h2 tag. you have to set that to 0 to get rid of the gap
Marked as helpful
@leahthompson01
Posted
@adram3l3ch Thank you, this fixed it! I was confused because I knew I didn't set a margin to my h2 elements, but I didn't think about how it already has a margin.
@adram3l3ch
Posted
@leahthompson01 every element tag in html have its own margin and paddings. A reset in the beginning could avoid the confusion
*,*::After,*::before{
margin:0;
padding:0;
box-sizing:border-box;
}