Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change style on indented UL list with out id or class

    Can I set up CSS to change the properties on an indented UL with out adding an ID or Class. I would like to change properties for ul of line 3-1 and line 3-2 but not sure how to do, I want to use the style thats in ul:ul (list-style-type = square) I'm not sure what ul:ul should really be

    Code:
    <style type="text/css">
    <!--
    ul {
      LIST-STYLE-IMAGE: url(images/some-image.gif);
      FONT-FAMILY: Arial;
      COLOR: #000;
      FONT-SIZE: 12pt;
      MARGIN-TOP: 0;
      MARGIN-BOTTOM: 0;
    }
    ul:ul
    {
      LIST-STYLE-IMAGE: none;
      LIST-STYLE-TYPE: square;
      MARGIN-TOP: 0px;
      MARGIN-BOTTOM: 0px;
    }
    li.small {
      LIST-STYLE-IMAGE: none;
      LIST-STYLE-TYPE: none;
      FONT-SIZE: 8pt;
    }
    -->
    </style>
    </head>
    
    <body>
    <ul>
        <li>this is a test </li>
        <li>line 2 </li>
        <li>line 3
        <ul>
            <li>line 3-1 </li>
            <li>line 3-2 </li>
        </ul>
        </li>
        <li>line 4 </li>
        <li>line 5 </li>
        <li class="small">lin6 </li>
    </ul>
    Thanks
    Jim M

    "Lord, help me to become the person my dog thinks I am" - Dawn Ewing
    "If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

    www.huskyzone.com -- Woodland Siberians

  • #2
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Never mind, just figured it out


    li ul

    Code:
    ul {
      LIST-STYLE-IMAGE: url(http://jimm/sweetlix/images/products/menu_bullet.gif);
      FONT-FAMILY: Arial;
      COLOR: #000;
      FONT-SIZE: 12pt;
      MARGIN-TOP: 0;
      MARGIN-BOTTOM: 0;
    }
    li ul{
      LIST-STYLE-IMAGE: none;
      LIST-STYLE-TYPE: square;
      MARGIN-TOP: 0px;
      MARGIN-BOTTOM: 0px;
    }
    Thanks
    Jim M

    "Lord, help me to become the person my dog thinks I am" - Dawn Ewing
    "If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

    www.huskyzone.com -- Woodland Siberians


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •