The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS h1 top-margin bumping down <div> Re: h1 top-margin bumping down

Allen Lawson

There is a simple fix for this.

Here’s the deal: the header is acting as a parent element to the h1 in a way. If you give #header a position of relative then you should be able to play around with where the h1 goes by also giving in a position. Check out Chris’s video on positioning for CSS

Other than that, just make sure there is no properties block the h1 from being located where you want it.