1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

css horizontal drop down or pop out

Discussion in 'CSS' started by klingerrr, Oct 2, 2006.

  1. #1
    I'm looking for a nice css horizontal nav with drop down. Can you offer any good links?
     
    klingerrr, Oct 2, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    kk5st, Oct 2, 2006 IP
    klingerrr likes this.
  3. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #3
    frankcow, Oct 2, 2006 IP
    klingerrr likes this.
  4. klingerrr

    klingerrr Peon

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for the quick info. i will let you know how it works out.
     
    klingerrr, Oct 2, 2006 IP
  5. klingerrr

    klingerrr Peon

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the alistapart drop down uses javascript.. Won't that affect the crawlability?
     
    klingerrr, Oct 2, 2006 IP
  6. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #6
    no, it only uses the javascript to create the pseudu hover class to get the menus working in IE
     
    frankcow, Oct 2, 2006 IP
  7. klingerrr

    klingerrr Peon

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i need help getting the drop down centered in IE.. what a pain.. it drops down correctly in FF.
     
    klingerrr, Oct 2, 2006 IP
  8. klingerrr

    klingerrr Peon

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    klingerrr, Oct 2, 2006 IP
  9. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #9
    hmm, not exactly sure what's happening there

    but it looks like the left margin of the menu UL is kicking in
    try setting the margins to 0px
     
    frankcow, Oct 2, 2006 IP
  10. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #10
    Edit like so:
    
    #nav {
        list-style: none;
        margin: 0;
        padding: 0;
    float:right;
    margin-right: 40px;
    margin-top: -60px;
    }
    Code (markup):
    Opera and IE use 40px left margin to create the list indent. Safari/Konqueror and Moz/Firefox use 40px left padding to create the indent. So zero both, then use margin and padding as you see fit.

    cheers,

    gary
     
    kk5st, Oct 2, 2006 IP
  11. klingerrr

    klingerrr Peon

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    gary,

    i appreciate the help, but that doesnt seem to help the drop down line up correctly. it is still indented for some reason..
     
    klingerrr, Oct 2, 2006 IP
  12. klingerrr

    klingerrr Peon

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    well, i was messing around and i think i fixed it..

    original
    new
    i changed left 0 to left -40 and it fixed the problem.. however, i'm new to CSS and don't know if that is an okay bug fix. What do you think?
     
    klingerrr, Oct 2, 2006 IP
  13. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #13
    You need to zero margin and padding on all uls.

    gary
     
    kk5st, Oct 2, 2006 IP