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

Home Forums CSS margin, padding issue Re: margin, padding issue


I have encountered the same problem before. Recreated here:

The top margin of the ‘h1’ appears to be pushing the wrapper down. The only way I found to fix it is to put content before the first element, but within the wrapper. See:

The alternate is just to add padding to the first element – but I’m not sure of the possible side effects.