Forum Moderators: not2easy
[edited by: alt131 at 4:43 pm (utc) on Feb 25, 2012]
[edit reason] Thread Tidy [/edit]
NOT CSS3 - this business does not have cutting edge clients
... except that the question was about
The list properties .... do not allow authors to specify distinct style (colors, fonts, alignment, etc.) for the list marker or adjust its position with respect to the principal box; these may be derived from the principal box.
Do not ask me why there are two colons. It doesn't appear to be a typo.That's the new syntax for 7. Pseudo-elements [w3.org]. Unfortunately two things have delayed use. First, legacy browsers don't understand it - but some do. Second, more modern browsers that don't understand it but use strict error handling treat it as an error so the rules following are ignored. Plus understanding of pseudo-elements varies, so some versions recognise some pseudo elements, but not others. A couple years ago we tried to figure how to use the new syntax and I made up a "table" but I haven't linked to it because it required up to three sets of rules, plus typo's meant implementing exactly what was written would fail anyway :).
ol {
list-style-position: outside;
/*for the example*/
line-height:32px;
}
li {
position:relative;
color:white;
}
li:first-line {color:black;}
li:before {
position:relative;
z-index:-1;
content:"\2022 ";
color: orange;
vertical-align:middle;
/*for the example*/
margin-left:-35px;
margin-right: 8px;
font-size:700%;
line-height:32px;
text-shadow: 1px 2px 3px #000;
}