CF Navigation Menu

Discussion in 'CSS' started by adsman, Dec 2, 2007.

  1. #1
    Hi guys,

    How do i make this menu curved on top also so it is fully curved on left/right hand side.

    http://www.dynamicdrive.com/style/cs...vigation-menu/

    Only beginning CSS so i'm a bit stuck. I can copy the left and right side images and invert them etc. but i'm not having any luck with the CSS/HTML Code.

    I have also tried to insert a small picture instead of a text link and this also seems to mess the menu.

    Any help would be appreciated.

    Thanks,
    S
     
    adsman, Dec 2, 2007 IP
  2. BuildHome

    BuildHome Well-Known Member

    Messages:
    837
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    108
    #2
    The link isn't valid.
     
    BuildHome, Dec 2, 2007 IP
  3. adsman

    adsman Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry, link is below

    http://www.dynamicdrive.com/style/csslibrary/item/cf-navigation-menu/
     
    adsman, Dec 3, 2007 IP
  4. Notting

    Notting Notable Member

    Messages:
    3,210
    Likes Received:
    335
    Best Answers:
    0
    Trophy Points:
    280
    #4
    You'll have to show us what youve done already
     
    Notting, Dec 3, 2007 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Ah dynamic drive - bloated code that's overcomplicated and a bad place for nubes to go - there you are. Extra wrapping DIV for nothing, presentational classnames, etc, etc, etc.

    Though I'm not sure what you mean by 'rounded' - the corners are already rounded? Do you mean rounded on each item?

    If you can do a quick drawing of what you are trying to do, I'll show you how to do it with a LOT less code than that bloated mess.

    -- edit --

    Here's how I'd code what Dynamic Drive had -
    http://battletech.hopto.org/for_others/adman/template.html

    The directory
    http://battletech.hopto.org/for_others/adman

    is unlocked so folks can grab the gooey bits. It's roughly two-thirds the CSS before I added better hover states - now it does full graphic mouse-overs. The whole thing also uses a single 1.83k image instead of the four separate images totalling 3.83k - in handshaking alone that can shave a second or more off the page loads. (AND the server overhead).

    The odd spacing of the </li><li> is an old trick to let us have some form of formatting, while tricking the browser into putting the whitespace into the tag instead of adding spacing between our floats - this lets us have full positioning control in the CSS. I changed the SPAN on the last item from a wrapper to a sandbag, which lets us work around some of firefox's shortcomings on right positioning (stupid 1px background jog) AND makes doing the single image easier.

    Validates XHTML 1.0 Strict, CSS fails on the haslayout (BFD), Tested working perfect in IE 5.5, 6 & 7, Opera, Safari and FF. (there's so little in there that COULD go wrong!)
     
    deathshadow, Dec 3, 2007 IP
  6. adsman

    adsman Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi deathshadow,

    Many thanks. Much appreciated.

    I have attached a pic of what i'm trying to do.

    I'm trying to round the corners all round on both ends.

    Thanks,
    s
     

    Attached Files:

    adsman, Dec 4, 2007 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #7
    deathshadow, Dec 4, 2007 IP
  8. HDaddy

    HDaddy Active Member

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #8
    HDaddy, Dec 5, 2007 IP
  9. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #9
    DeathShadow, this is a very useful code snippet. Thanks for sharing it with the rest of us.
     
    ChaosFoo, Dec 5, 2007 IP
  10. adsman

    adsman Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Many thanks Deathshadow. That is fantastic
     
    adsman, Dec 6, 2007 IP