1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Creating sub bullet points

Discussion in 'CSS' started by Alan Murray, Aug 5, 2007.

  1. #1
    A client wants one main bullet point then several sub built points. Can any body give my a little help with this please?
     
    Alan Murray, Aug 5, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Again, was that a question? (sorry, but that's JUST a little vague)

    Do you mean a Header followed by a UL, or a nesting a UL inside a UL?
     
    deathshadow, Aug 5, 2007 IP
  3. Courtenay

    Courtenay Peon

    Messages:
    63
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    
    <ul>
    <li>This is a bullet point</li>
    <li>This is a bullet point</li>
    <li>This is a bullet point</li>
    <ul>
    <li>This is a nested bullet point</li>
    <li>This is a nested bullet point</li>
    <li>This is a nested bullet point</li>
    </ul>
    </ul>
    
    HTML:
    And you would style your UL's and LI's accordingly in your CSS. UL UL would be the nested list.

    Hope this helps.
     
    Courtenay, Aug 5, 2007 IP
  4. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #4
    deathshadow, Of course it was a question, he was asking for help. :)

    Courtenay, the nested list has to be a child of a list item.

    Correct method:
    <ul>
      <li>First Level
        <ul>
          <li>Second level</li>
          <li>Second level</li>
          <li>Second level</li>
        </ul>
      </li>
    </ul>
    Code (markup):
     
    krt, Aug 5, 2007 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Sorry, but I didn't understand a word of it... Though yes, I do suspect he wanted a nested UL... in which case as you said, it needs to go into an LI - preferably the one it is a subgroup of.
     
    deathshadow, Aug 5, 2007 IP
  6. Alan Murray

    Alan Murray Well-Known Member

    Messages:
    1,044
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    145
    #6
    krt thanks a lot.
     
    Alan Murray, Aug 6, 2007 IP