Results 1 to 4 of 4

Thread: css list positioning

  1. #1
    Join Date
    Oct 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default css list positioning

    I am working on a site, using a modified .js menu system i found in a tutorial.

    http://uoregon.edu/~josh/test_menu/
    http://uoregon.edu/~josh/test_menu/style.css(the offending css is vertically spaced)

    what i cannot work out is why the menu will not float left within the div it is contained within.

    here is a firebug screengrab that shows the size of the containing div:
    http://uoregon.edu/~josh/test_menu/firebug_screen.png

    I think it is something to do with the order of <ul> & <li> elements in creating the menu. however as this is something preordained by the .js tutorial i got the menu code from I do not know what to do.

    any advice greatly appreciated.
    Last edited by Josh404; 11-09-2008 at 01:57 AM.

  2. #2
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    add this to your css...

    Code:
    ul#treemenu1 {
    float:left;
    padding:0;
    }
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  3. #3
    Join Date
    Oct 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thankin' ye

  4. #4
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    no problem
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

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
  •