On 7 Jun 2004, at 06:39, Sam Walker wrote:
How would you go about selecting the markers on an ordered list to style them? I want to style the 1,2,3,4 markers (or in this case, I. II. III. IV. , as i have the style set to upper-roman) with things such as size and color
Always a tricky problem this, and I'm not aware of a nice solution, certainly not one that works well across all browsers including IE. A way to accomplish what you're after is to style the LI how you would like the counter to be shown and then wrap the LI contents in a SPAN and style the SPAN how you would like the text to be. For example, this would give you a red counter and blue text:
<ol> <li><span>first</span></li> <li><span>second</span></li> <ol>
LI {color:red}
LI SPAN {color:blue}Hardly clean and meaningful, but slightly better than writing out the counter numbers manually.
Rich www.clagnut.com
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************
