Home › Forums › CSS › Padding above top nav bar › Re: Padding above top nav bar
November 27, 2012 at 7:09 am
#115588
Member
I am unsure why you have put a 35px height on the body element and used a fixed position.
Try this in your CSS instead;
* { /* This is just a basic reset to strip all margin and padding */
padding: 0;
margin: 0
}
body {
background: #121211; /* Shorthand for background properties */
text-align: center; /* Aligns all text centrally */
}
#topbar {
height: 48px;
background: white; /* Possible to use names for colours (to an extent) */
border-bottom: 4px solid #444442;
}