I have a header div as the first element in my wrapper div, but when I add a top margin to a h1 inside the header div it pushes the entire header div down. I realize this ha
Adding a tiny bit of padding to the parent element top can fix this issue.
.parent{ padding-top: 0.01em; }
This is useful if you need an element inside the parent to be visible outside the parent element, like if you are creating an overlapping effect.