Different style for each heading rank

YaminoSoul

New Member
Now that headings have rank as they descend through sections as well as simply by tag, is there a way to select by rank in the stylesheet?I prefer to use the "h1 for everything" approach, since I can move sections in and out of the outline without re-tagging the headings, but I can't think of a way to tell the user-agent to give different ranks a different style.Ideally I would be able to say something like \[code\]h1:rank1{ font-size: 18pt }\[/code\], which would only change the section headings and \[code\]h1:rank2\[/code\] to select the sub-section headings. Granted, I could just as easily use \[code\]section h1\[/code\] and \[code\]section section h1\[/code\], but I'm wondering if there is something cleaner than repeating "section" for as deep as my outline goes.
 
Back
Top