I was completely smitten by the brevity of the descendant combinator such as:
<style>
.dash {list-style: none;}
.dash li:before { content: " — "; margin-left: -2em;}
</style>
This puts a dash instead of a number or a bullet in front of <li> if surrounded by either <ol> or <ul>.
You can even use * to denote any tag enclosed by the class:
<style>
.whatever * {
do:this; do:that;
}</style>
I'm confused on how combinators, tags, and classes get put into alphabetical order.
Best regards, Pop
|