Forum Moderators: not2easy
#navigation ul li p a {
a.menu li {
p.content img {
ul ul li {
...or whatever. Not those ones in particular but the idea behind that. I'm an 'intermediate' CSS writer and I need to find a good description of how this type of thing works because I just don't really get it and that's not good enough for me.
Hope this makes sense and I'm not going crazy :)
CSS Crash Course - Index
Menu for the WebmasterWorld CSS crash course [webmasterworld.com]
From personal experience, I'm sure that if/when you have any questions, then simple, straightforward answers will be forthcoming from some of the many helpful regulars here :)
Anyway a selector that goes like
x y {...}
is applied to an html element matching "y" that is a child (no matter how many levels deep) of an html element matching "x"
A space is just one of the options there, others are ">", "+" etc:
they all have their own meaning, but might be less than supported by IE6, so take care if you use those.
Standard: [w3.org...]
Say you wanted to style all of the links inside one paragraph.. don't apply a class name to each individual link, that would be a huge amount of code bloat.
Instead, cut down on the amount of code and apply the class name once, to the paragraph. Then style links with
p.class a { ... } instead.