
January 30th, 2013, 08:53 AM
|
|
|
All you need to align your nav in the middle of the page is
Code:
nav {
width: 933px;
margin: 0 auto;
}
However, rather than repeating the width and margins for each div / area of content, why not set it once in a wrapper div and place your head, nav, footer etc divs inside the wrapper.
I have also noticed that you have your #top div declared twice in your stylesheet which needs rectifying (lines 116 and 175).
With regard to the gap, change your nav ul to
Code:
nav ul {
margin: 0;
background: linear-gradient(top, #308014 0%, #556B2F 100%);
background: -moz-linear-gradient(top, #308014 0%, #556B2F 100%);
background: -webkit-linear-gradient(top, #308014 0%, #556B2F 100%);
background-color: #308014;
box-shadow: 0px 4px 9px rgba(0,0,0,0.15);
}
|