I can't read style sheets. Help.

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
I am trying to look at a style sheet to see how it affects the code.

h4.post-title a, div.post-title span {

For the life me, I can't figure out what this means. Is there an A tag inside an H4 tag with a class of post-title? I'm totally lost, looking at examples and I was wondering if anyone could explain this to me.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Pretty good! The styles within that block apply to two items:
-anchors within h4s which have the class post-title (as you guessed)
-spans within divs which have the class post-title (same logic)

Basically, a space between items means nesting, with the right-most being the actual item receiving the style. A comma means just to start a new sequence and it would be exactly the same as just repeating the whole block with the different header.