Results 1 to 2 of 2

Thread: Lists and margins

  1. #1

    Thread Starter
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196

    Lists and margins

    I have a list of elements that are displayed (surprisingly) as a list:

    Code:
       <li id="foldheader"><a href="Administration">Administration</a></li>
       <ul id="foldinglist" style="display:none" style=&{head};>
          <li><a href="Administration/URL1">Something1</a></li>
          <li><a href="Administration/URL2">Something2</a></li>
       </ul>
    How can I make the tab that it inserts before the list items smaller? When displayed the indent for the list item(s) is a bit big.

    Thanks

    HD

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    try turning the margin off using css.

    Code:
    <li style="margin:0;">item</li>
    You can also do this by using a class for the entire document.

    Code:
    <style type="text/css">
      li {margin:0;}
    </style>
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

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



Click Here to Expand Forum to Full Width