Home › Forums › CSS › Padding above top nav bar › Re: Padding above top nav bar
November 27, 2012 at 7:14 am
#115592
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.