CNIDog,
CSS is working exactly as designed.
#frog,h1,h2,h3,h4,h5,h6 { .... } means "apply the rules in the {curly braces} to each of the listed selectors". #frog means "the HTML element with an ID of 'frog' ". h1 means "all HTML elements of type ...".
etc. # is only one of several selector types. Use . for all HTML elements of a certain class, eg. .blueBack { background-color:blue; } .
These are the main ones. There are others. See http://www.w3.org/TR/CSS21/selector.html for the official words on CSS selectors. It's great reading.
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
reread the css tutorial
Your css has[INDENT] element COMMA element[/INDENT]the tutorial has[INDENT] element SPACE element[/INDENT]css descendants are separated by spaces, css lists are separated by commas
You can also group descendants,
element space element comma element space element
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
Thanks Bob, you beat me to it.
Sorry CNIDog, I should have mentioned the difference between commas and spaces - very important.
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
I know what I did to learn that single point
but its embarrassing to relate just how long it took
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376