Results 1 to 2 of 2

Thread: Slight change in a Dynamic Drive script?

  1. #1
    Join Date
    Jun 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slight change in a Dynamic Drive script?

    1) Script Title: Pop-it Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/popit.htm

    3) Describe problem: Anyway to make the menu display out horizontally, instead of vertically? So the links would basically just line up next to each other, instead of being on a new separate line?

    Example of Pop-it Menu:

    Main Link
    ---------
    Link 1
    Link 2
    Link 3

    Example of what I want to do:

    Main Link
    ---------
    Link1 | Link 2 | Link3

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

    Default

    The basic process to changing the pop it menu to a horizontal orientation is simple- just edit the CSS slightly:

    Code:
    #popitmenu a{
    "
    "
    float: left;
    }
    The line in red is new, and forces the links to appear left to right. That's the basic idea, though you'll also need to make sure the new menu is long enough horizontally to accomodate the links (ie: 600px).

    Attached is a simple complete example.

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
  •