Forums

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

#69425
clokey2k
Participant

I have encountered the same problem before. Recreated here: http://jsbin.com/itaqi4/2/

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: http://jsbin.com/itaqi4/3/

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