tags:

views:

104

answers:

1

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

+4  A: 

Use list-style-position: inside.

Max Shawabkeh
cool-I haven't heard of that one...going to go read up on it now. Thanks!
Joel
Awesome! Thanks Max! CSS is great, and you are great! I hope that I can contribute answers to people soon!
Joel
Wow. Learn something new each day. I hadn't heard of that before either.
jessegavin
can I ask a followup-how would I then keep the indention of the text on a text wrap then (IE so text doesn't end up below the bullet)?
Joel
ah-Google is my friend. http://groups.google.com/group/web-authoring/browse_thread/thread/b5272da8c7714c72?pli=1
Joel