Hi everyone.
I’m new to this, not done web development since 2002 and recently got back into it.
I’m having trouble with my header and navigation.
I’ve designed the website in photoshop and i’m not trying to build it in css but i’m struggling to get the background for my header, how i designed it.
I have a logo in the header and want a black background to span across the page behind the logo. The navigation is then underneath the logo and i want a grey background to span across the page behind that but no amount of code i’m trying is getting me the result i want. I’ve even tried adding the background as an image at the size of 1 pixel and then having that repeat across the page but it doesnt show. I’m at a loss and dont know what to do.
Here is my code for the site: (be gentle i’ve only been learning css for a week)
[code]
body {
background-color: #810e0e;
width: 100%;
float: left;
}
.logo {
padding: 0px 300px 20px 100px;
}
body > nav ul li {
display: inline-block;
list-style-type: none;
font-family: Orbitron;
font-size: 18px;
float: left;
padding: 5px 10px 5px 30px;
}
a {
color: white;
text-decoration: none;
padding: 5px;
border-radius: 5px;
}
a:visited {
color: white;
}
a:hover {
background-color: black;
color: white;
padding: 5px;
border-radius: 5px
}
h1, div {
font-family: sans-serif;
color: white;
float: left;
}
.product {
margin: 10px 20px 20px 10px;
}
.about {
background-color: #999;
padding: 0px 5px;
border-radius: 5px;
margin: 10px 20px 10px 20px;
}
.blurb {
background-color: #999;
font-family: sans-serif;
padding: 5px 5px;
border-radius: 5px;
margin: 10px 20px 20px 20px;
clear: both;
float: left;
}
.design {
background-color: #999;
font-family: sans-serif;
padding: 5px 5px;
border-radius: 5px;
margin: 10px 20px 20px 20px;
float: left;
}
.icons {
align-content: center;
margin-top: 20px;
clear: both;
}
nav ul li {
font-family: sans-serif;
font-size: 13px;
display: inline-block;
list-style-type: none;
margin: 0.5px 50px 0.5px 50px;
}
.footnav {
background-color: black;
background-repeat: repeat;
}
.copyright {
margin-right: 80px
}
.fb {
background-color: black;
padding: 6px 100px 6px 50px;
}