cant remove the circle thing in list

Discussion in 'CSS' started by shadow_boi, Jul 20, 2010.

  1. #1
    I have these lines on my css:
    
    .catBox ul{
        list-style-type: none;
        padding-left: 0px;
    }
    
    Code (markup):
    And i have these lines on my html:

    
    	<div class="catBox">
    	<div class="catLeft">Com Coupons<ul>
    									
    			<li><span class="code">YES3</span>30% off .com domain names</li>
    									
    			<li><span class="code">QUEEN3</span>30% off .COMs and Renewals</li>
    </ul>
    </div>
    </div>
    
    Code (markup):
    But the dot in front of the list item still shows up.

    [​IMG]

    What did I do wrong?
    Thanks.
     
    shadow_boi, Jul 20, 2010 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    The ul is a decendent of catLeft, not catBox, so do .catBox .catLeft ul
     
    drhowarddrfine, Jul 20, 2010 IP
  3. shadow_boi

    shadow_boi Peon

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for you reply.

    However, it still doesn't work.

    .catBox .catLeft ul{
    list-style-type: none;
    padding-left: 0px;
    }
    The dot thing is still there.
     
    shadow_boi, Jul 20, 2010 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    You didn't mention in which browser(s) this happened; it's always a good idea to do so.

    Try this:
    .catBox ul{
        list-style: none;   /*note the property token*/
        padding-left: 0;
        margin-left: 0;   /*IE8 and Opera10 now use padding for the indent.  Older versions used margin, 
                            so be sure to zero it too.*/
    }
    Code (markup):
    cheers,

    gary
     
    kk5st, Jul 20, 2010 IP
  5. shadow_boi

    shadow_boi Peon

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry. my bad.

    It has this issue in both FF and IE.
     
    shadow_boi, Jul 20, 2010 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Solution tested, and works.

    cheers,

    gary
     
    kk5st, Jul 20, 2010 IP
  7. xsabrina.chic

    xsabrina.chic Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Here's the code to remove the annoying bullet list :p

    .catBox .catLeft ul li{list-style: none;}

    list-style is different from list-style-type
     
    xsabrina.chic, Jul 25, 2010 IP