yes..
this is exactly what we want..
thank u so much for ur guidance..
Ok, I have edited what is needed and I have put a lot of comments there, so you should be able to read it.
Note that the way I have changed things, you need to store them in the same dir, all 3 files together. If you change them in different folders, you have to change paths to one another.
Stick to the books, you have a lot to read about css, html/dom and php. You got the idea, now you have to learn how to match all the things together!
Good luck.
P.S I have changed the .css file to .php to avoid problems - you have to rename it back to css.