Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to extend background color of unordered list items to go behind bullets?

Tags:

css

I have an unordered list and I want to have the list items have alternating background colors. I'm using bullets in the list. Is there a way to extend the background of the color horizontally to get under the bullet?

Margin and padding just push the bullet away.

list
(source: mbira.me)

like image 422
Joel Avatar asked Jan 27 '10 01:01

Joel


1 Answers

Use list-style-position: inside.

like image 175
Max Shawabkeh Avatar answered Nov 15 '22 21:11

Max Shawabkeh