ok to answer the first post as simple as possible here is an example
in your css you havediv#header div {
color: red;
}
so this is what you will have in you html/php page<div id="header">
<div>
some text
</div>
<div>
if you had in your css you havediv#header div div {
color: red;
}
then you would have in html/php page<div id="header">
<div>
<div>
some text
</div>
</div>
<div>
see how everytime there is a div added to the css that you have to add an extra div into the header div on the page to get the colour red to target the div in question
you can also us this to target other elements like h1, h2 etc
cssdiv#header h2 {
color: red;
}
html/php page<div id="header">
<h2>
some text
</h2>
<div>
and here is something that you can put directly into a page to see what is going on
in the head put (just before the </head> tag<style type="text/css">
div#header{
color:##66FF00;
}
div#header div{
color:#FF0000;
}
</style>
and in the body put this<div id="header">
green text
<div>
red text
</div>
</div>
you will see that the first piece of text is green that is because it is in the header id
the second is red because in the css it is looking for the header id plus a div in order to change the text red
does this make more sense?