By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,750 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,750 IT Pros & Developers. It's quick & easy.

How to assign a border to the numbers of a <ol>?

P: n/a
Hi everybody,

i'm asking myself, if there's a way to assign css border: to just the
numbers of my order list <ol>.

If there's no way, there might be a way to use background-image: like to
use images for list-style-type:?

Thx Vero
Sep 4 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Verona Busch <ve**********@gmx.dewrote:
>i'm asking myself, if there's a way to assign css border: to just the
numbers of my order list <ol>.
Nothing reliable.

A hack that only "works" if the number of list items is known:
http://homepage.ntlworld.ie/spartani...ol_numbers.htm
>If there's no way, there might be a way to use background-image: like to
use images for list-style-type:?
That would break if the font size on the client system is different than
on your system.

--
Spartanicus
Sep 5 '06 #2

P: n/a
Spartanicus wrote:
Verona Busch <ve**********@gmx.dewrote:
>i'm asking myself, if there's a way to assign css border: to just the
numbers of my order list <ol>.

Nothing reliable.

A hack that only "works" if the number of list items is known:
http://homepage.ntlworld.ie/spartani...ol_numbers.htm
>If there's no way, there might be a way to use background-image: like to
use images for list-style-type:?

That would break if the font size on the client system is different than
on your system.
That hack is great and it's valid. Thank you very very much... :-)
Sep 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.