![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way to change the bullet form, color, etc, of the element li> under<ul> via css? |
|
throw rubbish out if you want to reach me by e-mail '---- |
#3
| |||
| |||
|
|
On Tue, 18 Jan 2005 08:38:31 GMT, Udo Marx wrote: Is there a way to change the bullet form, color, etc, of the element li> under<ul> via css? You can do lots with bullets, even use your own image. Have a look here: http://www.alistapart.com/articles/taminglists/ or do a simple Google for css bullet and you'll finds heaps of examples. |
#4
| |||
| |||
|
|
I found it very useful to use a positioned background-image for <li>s and set liste-style-image to none. If you need a graphical bullet it's more flexible than using liste-style-image:url(...); |
#5
| |||
| |||
|
|
I found it very useful to use a positioned background-image for <li>s and set liste-style-image to none. If you need a graphical bullet it's more flexible than using liste-style-image:url(...); An interesting idea... I guess you mean something like li { list-style-type: none; background: url(../images/bullet.gif) no-repeat; padding-left: 1em; } |
|
(and perhaps setting the left margin and padding of the ul element to zero or something small, to avoid the excessive default indentation). But it's probably best to wrap it inside @media screen { ... }, since most browsers by default omit background images in printing. |
#6
| |||
| |||
|
|
Yet, but I find something missing from CSS regarding list bullets. On more than one occasion, I wanted to change the bullet to a plus sign, or a hyphen, or some other textual character. Too bad we don't have list-marker: "*"; or some such thing. |
#7
| |||
| |||
|
|
Christoph Paeper wrote: ::marker {content: '*'} http://www.w3.org/TR/css3-lists/#markers>. Of course, it'll be years before it is of any use. |
|
Not to sound cranky, but why wasn't this in CSS 1? |
![]() |
| Thread Tools | |
| Display Modes | |
| |