Le 15 avr. 2013 à 07:46, COM <j...@coffeeonmars.com> a écrit :

> I am having a tough time finding online (google, w3schools) the correct way 
> to change the color of bullets in an unordered list, *independently* from the 
> color of the bullet text.There seem to be what the authors refer to as hacks, 
> and some techniques where the bullet is a .gif.
> 
> I'd like to keep the bullets all code, but have control of their colour AND 
> the color of the bullet text.


The suggestion by Tom Livingstone to wrap the contents of the <li> in a span is 
one option, but not necessarily easy, depending on how the content is generated 
(CMS ?).

Another option: generate the bullet yourself, using generated content.
Sample:
http://dev.l-c-n.com/_temp/bullet2.html

Works perfectly fine in IE 8 and up, Gecko, WebKit, iOS and Android devices.

PS - don't trust w3schools, ever. See http://w3fools.com

Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to