AnimTree

Modifying The CSS

Copy the demo and change the colors.

Do not be afraid to change the css. Changing font-size and positioning may yeild unexpected results, mostly in Internet Explorer for Windows. Test often and save backup copies.

Try the w3c's CSS Validator.


/* what should the label look like? 
  change the values in the css file to match your needs.
  */
.buttonlabel {
    font-size: 13px;
    height: 14px;
    cursor: default;
    color: #000;
}

/* label mouseover state  */
.labelHover {
    color: #090601;
}

/* depressed label state  */
.labelDown {
}

/* depressed label state with mouseover */
.labelHover.labelDown {
}



/* depressed label mouseover state  */
.labelHover.labelDown {
}

/* each menuNode in the tree  */
.menuNode {
    font-size: 14px;
    background: url("../img/animtree_leaf.gif") no-repeat;
    height: 16px;
    text-indent: 8px;
}

/* the last menuNode in the tree  */
.menuNode.last {
    background: url("../img/animtree_leafEnd.gif") no-repeat;
}


/* nested links for each menuNode in the tree  */
.menuNode a {
    color: #000;
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
    padding: 0px 3px 1px 0px;
    margin-left: 8px;
    text-decoration: none;
    width: auto;
}

.menuNode a:hover, .menuItem a:hover{
    text-decoration: underline;
}

.menu {
    padding-left: 6px;
    padding-bottom:  .6em;
    padding-top: 1px;
    font-family: Trebuchet MS, Arial, sans-serif;
    margin-bottom: -3px;
}

.menu .menu { /* submenus */
      background: url("../img/animtree_branch.gif") repeat-y 1px 0;
    margin-left: -1px;
    margin-bottom: 0;
    padding-left: 5px;
 }             


/* submenus' menu items */
.menu .menu .menuNode {
    margin-left: 8px;
}


/* The tree container. 
  Use an unique ID for multiple trees.
*/
.AnimTree {
    position: absolute;
    left: 0;
    top:0;
    border: 1px solid #ccc;

    background: #46251f;
    border-width: 1px;
    border-style: solid;
    border-color: #5b3029;

    width: 192px;
    margin: 0;
    white-space: nowrap;
    /* If the tree gets over 420px, a scrollbar will appear.
      don't be afraid to change this.
    */
    height: 420px;
    overflow: auto;
}

Next in this tutorial:

 

*AnimTree
*Tabs
*GlideMenus
*DragLib
[draggable] close()