2

Possible Duplicate:
How to define the Color of Bullets in UL/LI Lists via CSS, WITHOUT using any image bullets or any span tag?

how can change the color of the list-style circle using css

my css is:

 ul{ list-style:circle; } 
0

3 Answers 3

7

try this.

 <ul> <li><span>text</span></li> </ul> ul li { list-style:circle; color:blue; } ul li span { color:#000; } 
Sign up to request clarification or add additional context in comments.

Comments

3

There is:

ul { list-style:circle; color:blue; } 

For other font color additionally do this:

ul span { color:black; } 

and html:

<ul> <li><span>This is a black line</span></li> </ul> 

2 Comments

now the text color also become blue ,i don't want that,i want only the circle color needs to change..
thats why I edited the answer ;)
1

The answer in the topic Soufiane Hassou mentioned is the best way to go, but if you don't mind using spans in the li, you could use:

ul { list-style: circle; color: #FF0000; } ul span { color: Black; } 

Where the HTML is:

<ul> <li> <span>Test-text</span> </li> </ul> 

This will mark the bullet red, but the text Black.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.