Results 1 to 2 of 2

Thread: tree view indenting too far

  1. #1
    Join Date
    Sep 2004
    Location
    Florida
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question tree view indenting too far

    I am trying to use this script, but it seems to be indenting too far which makes the link names hard to read. Is there a way I can change how far the the parent and child folders indent?

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You can manipulate the indentation of most HTML elements by using CSS. In this case for example, begin by giving the master <ul> tag that wraps around the entire folding tree a class name, such as:

    Code:
    <ul class="mytree">
    Then, add the below CSS at the top of the page to manipulate the tree's indentation:

    Code:
    <style type="text/css">
    
    .mytree{
    margin-left: 10px;
    }
    
    .mytree ul{
    margin-left: 20px;
    }
    
    </style>
    Experiment with the values, though 10 and 20 should decrease the indentation significantly already.

Bookmarks

Posting Permissions

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