Making a Div Layout - Part five
Ok now let’s work on the header, site name and top navigation.
#Header
You should already now know that # is the order and you will see . as we go on, which are class which follow the order in the same list. So let’s start.
Copy and paste the below over the #header
margin:0;
padding:0;
height:200px;
background:url('images/header.jpg') no-repeat top center;
Now I will cover the background:url(’images/header.jpg’) no-repeat top center; as the rest as been cover in Making a Div Layout - Part four
#background:url
You can have many ways to do a background.
background:url – This is use where we can link it all in one, this is what we will be using.
background-position: – This is used for placing the background to likes of right, left and so on.
background-repeat: – You can have no-repeat which will make the image not repeat, repeat-x well repeat the image across, repeat-y this makes the image repeat down. There are more, but you won’t really use them
background: – You could just place a colour or a image
background-color: – For use of colour
background-image: – For image
(more…)