Connecting Tech Pros Worldwide Forums | Help | Site Map

bullet image for unordered list problem

Newbie
 
Join Date: Jan 2008
Posts: 14
#1: Mar 16 '08
I'm using an image for an unordered list, which works fine. The problem is, the image is also appearing in my numbered "ordered list." Here is my code for the unordered list:...and thanks in advance:
Expand|Select|Wrap|Line Numbers
  1. ul {
  2. font-family: Arial;
  3. font-size: 12px;
  4. color: #424E51;
  5. font-style: normal
  6. line-height: 17px;
  7. font-weight: normal;
  8. font-variant: normal;
  9. text-transform: none;
  10. text-decoration: none;
  11. background-color: #FFFFFF;
  12. text-indent: inherit;
  13. list-style-position: outside;
  14. margin: 25px;
  15. list-style-type: none;
  16. }
  17.  
  18. li {
  19.     padding-left:15px;
  20.     background:transparent url(MEDIA/JPGs/bullet.gif) no-repeat;
  21.     background-position:0 7px;
  22. }
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,562
#2: Mar 16 '08

re: bullet image for unordered list problem


Because you are putting the image in all li's. So be more specific and say:
ul li {....}
Newbie
 
Join Date: Jan 2008
Posts: 14
#3: Mar 16 '08

re: bullet image for unordered list problem


Quote:

Originally Posted by drhowarddrfine

Because you are putting the image in all li's. So be more specific and say:
ul li {....}

Thanks so much for the reply...I just "stumbled" on the answer before reading your post...but again...many thanks!
Reply