Forums

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

Home Forums CSS Padding above top nav bar Re: Padding above top nav bar

#115592
wolfcry911
Participant

a child element of #topbar has top margin protruding out the top. you can do a number of things to fix the problem. 1) add overflow: hidden; to #topbar – this changes its block formatting context; 2) add a top padding or border to #topbar; 3) eliminate the top margin on the child element.

Watson90, using the universal selector to zero padding and margin is not a good idea.