A question about lists

Discussion in 'CSS' started by tirengarfio, Jun 11, 2010.

  1. #1
    Hi,

    i have this:
    
    <ul><li>Label
        <ul><li>field</li>
            <li>error</li>
        </ul>
        </li>
    </ul>
    HTML:

    Is there any way to get the list is showed exactly this way? :

    Label field
          error
    HTML:
    Regards

    Javi
     
    tirengarfio, Jun 11, 2010 IP
  2. sudharsan

    sudharsan Active Member

    Messages:
    164
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    If i understood it right.. you do that with css.

    <ul><li>Label
    <ul style="margin: -20px 0px 0px 60px"><li>field</li>
    <li>error</li>
    </ul>
    </li>
    </ul>
     
    sudharsan, Jun 11, 2010 IP
  3. johagulo

    johagulo Peon

    Messages:
    879
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use margins as described above
     
    johagulo, Jun 12, 2010 IP