Any more thoughts on this one please ?
-----Original Message-----
From: Bert Doorn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 8 June 2004 11:13
To: [EMAIL PROTECTED]
Subject: RE: [WSG] Ordered list mark-up
G'day
Well, the specs appear to have provision for it. Unfortunately the vast majority of
browsers do not (yet) seem to support it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<TITLE>Content alignment in the marker box</TITLE>
<STYLE type="text/css">
LI:before {
display: marker;
content: "(" counter(counter,lower-alpha) ") ";
counter-increment: counter;
width: 3em;
text-align: center;
}
</STYLE>
</HEAD>
<BODY>
<OL>
<LI> This is the first item.
<LI> This is the second item.
<LI> This is the third item.
</OL>
</BODY>
</HTML>
I've tested this code in Opera 7.5, MSIE 6, Mozilla 1.6 and Firefox 0.8. It worked
only in Opera, where it displayed both the regular "1" and the "(a)" like this:
1. (a) This is the first item.
2. (b) This is the second item.
3. (c) This is the third item.
(you'd need to set the ol's list-style to none, to suppress the numbers)
The others just showed a numbered list:
1. This is the first item.
2. This is the second item.
3. This is the third item.
Perhaps others have experimented with this and found a way for it to work in other
browsers.
Regards
--
Bert Doorn, Better Web Design
www.betterwebdesign.com.au
Fast-loading, user-friendly websites
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************
*********************************************************************************
This e-mail message (along with any attachments) is intended only for the named
addressee and could contain information that is confidential or privileged. If you
are not the intended recipient you are notified that any dissemination, copying or use
of any of the information is prohibited. Please notify us immediately by return
e-mail if you are not the intended recipient and delete all copies of the original
message and attachments.
This footnote also confirms that this message has been checked for computer viruses.
*********************************************************************************
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************