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

#115588
Watson90
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;
}