Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > substitute list sign

Reply
Thread Tools

substitute list sign

 
 
Markus Wichmann
Guest
Posts: n/a
 
      08-16-2006
Hi all,
sorry if I'm asking a question that has been answered 5000 times before,
but I didn't find a thing on that in Google. I want to do the following:
If I use subordinating lists, each ordered list counts for itself (which
is good), but I'd like to prepend the other numbers. So that it looks
like this:
Now:
1. bar
1. foo
2. foobar
Then:
1. bar
1.1. foo
1.2. foobar

The other thing I'd like to do, is to remove the sign completely in
unordered lists. Is there a way to do this with css? Or without, but
without using a deprecated method? I wanted to append a "valid
HTML"-picture on my file, when it's done. And because I'm using the
"strict" dialect that is only possible with undeprecated methods.
tia and cu
nullplan
--
To err is human. To forgive is divine.
To forget is also human...
 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      08-16-2006
Deciding to do something for the good of humanity, Markus Wichmann
<> declared in alt.html:

> If I use subordinating lists, each ordered list counts for itself (which
> is good), but I'd like to prepend the other numbers.


This would be possible using CSS counters, but browser support is very
poor.

http://www.w3.org/TR/CSS21/generate.html#counters

Other than that you would probably have to use some sort of
pre-processing to generate the numbers.

> The other thing I'd like to do, is to remove the sign completely in
> unordered lists.


ul {list-style-type: none;}

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
 
 
 
Markus Wichmann
Guest
Posts: n/a
 
      08-17-2006
Mark Parnell schrieb:
> Deciding to do something for the good of humanity, Markus Wichmann
> <> declared in alt.html:
>
>> If I use subordinating lists, each ordered list counts for itself (which
>> is good), but I'd like to prepend the other numbers.

>
> This would be possible using CSS counters, but browser support is very
> poor.
>
> http://www.w3.org/TR/CSS21/generate.html#counters
>
> Other than that you would probably have to use some sort of
> pre-processing to generate the numbers.
>
>> The other thing I'd like to do, is to remove the sign completely in
>> unordered lists.

>
> ul {list-style-type: none;}
>


Well, that one with ul worked, thanks for that. And I finally got it
right with the counters. I used the following:

ol {counter-reset: item}
ol li { display:block }
ol li:before {content: counters(item,".") " ";
counter-increment: item;
}
ul li:before { content: normal;
counter-increment: none;
}

This works fine with my list. It has multiple nested ordered lists, but
there are a few unordered list, which should be displayed with text and
markup (hyperlinks, e.g.) only.
Thanks again and
cu,
nullplan

--
To err is human. To forgive is divine.
To forget is also human...
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      08-18-2006
Deciding to do something for the good of humanity, Markus Wichmann
<> declared in alt.html:

> Well, that one with ul worked, thanks for that.


You're welcome.

> And I finally got it right with the counters.


In what browsers? I'd be very surprised if it worked in IE - IIRC IE
doesn't support counters at all.

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
$ sign to gb pound sign PWB Computer Support 6 02-19-2007 03:06 AM
Automatic sign-up and sign-in across different domains without cookies? Jimmy ASP .Net 1 11-21-2006 04:41 PM
Automatic sign-up and sign-in between different domains without cookies? Jimmy Javascript 3 11-20-2006 01:28 PM
sorted list as phonebook substitute Steven Munlo Javascript 4 04-13-2006 07:57 PM
J sign instead of ? sign Harold Potter esq. Computer Support 5 04-16-2005 02:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57