I have set the following to generate circles in my <li>
items
li { list-style: circle; color: #fcbf00; }
It doesn't display color however. How can I fix this?
Posted a link to show my full CSS: http://pastebin.com/1h7YyGqW
I have set the following to generate circles in my <li>
items
li { list-style: circle; color: #fcbf00; }
It doesn't display color however. How can I fix this?
Posted a link to show my full CSS: http://pastebin.com/1h7YyGqW
Because of your margin settings with *
selector you cannot see your bullets.
Add a padding or margin to the body container or set the list-style-position
to inside
.ul1 li {
list-style: circle outside;
color: red;
}
.ul2 li {
list-style: circle inside;
color: green;
}
.ul3 {
padding: 0 2em;
}
.ul3 li {
list-style: circle outside;
color: blue;
}
* {
margin: 0;
padding: 0;
}
body {width: 200px;}
<h2>Outside list</h2>
<ul class="ul1">
<li>Lorem ipsum dolor sit amet, consectetur.</li>
<li>Id nesciunt, provident! Ullam, voluptate, ipsum!</li>
<li>Blanditiis voluptatibus deleniti amet. Assumenda, praesentium.</li>
</ul>
<h2>Inside list</h2>
<ul class="ul2">
<li>Lorem ipsum dolor sit amet, consectetur.</li>
<li>Voluptates tempora laudantium saepe voluptas placeat.</li>
<li>Harum accusamus nihil consequuntur, hic repudiandae.</li>
</ul>
<h2>Outside list with padding</h2>
<ul class="ul3">
<li>Lorem ipsum dolor sit amet, consectetur.</li>
<li>Molestiae saepe minus, quod officia ducimus.</li>
<li>Omnis nisi excepturi nobis neque. Unde.</li>
</ul>
Duplicated.
Are you looking for something like this?
If not, maybe you should try to set an image as bullet with list-style-image