Menu doesn't work in CSS. Can anyone spot the problem?

Discussion in 'CSS' started by motorcycleclub, Nov 11, 2008.

  1. #1
    I'm new at CSS and the left menu doesn't work as it clearly should , like links on the index2.html page.

    Can anyone spot the problem? Is it in my hltm or my CSS? :confused:

    The page is at www.b5.co.nz/motorcycles/index2.html

    Hank
     
    motorcycleclub, Nov 11, 2008 IP
  2. wizs

    wizs Active Member

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    63
    #2
    Just having a quick look you don't need to use <br /> to space out your nav links. Just apply padding to them.

    Looks like your problem is HTML and CSS related. Strip out your CSS from your nav div and see if the links work then. This is a simple menu so you only need a couple of styles maximum!
     
    wizs, Nov 11, 2008 IP
  3. motorcycleclub

    motorcycleclub Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have done that and the menu still doesn't work.
    Also, without the <br> the menu items do not space out.

    Can you help?

    Hank
     
    motorcycleclub, Nov 11, 2008 IP
  4. motorcycleclub

    motorcycleclub Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm still stuck. Can anyone else help?
     
    motorcycleclub, Nov 14, 2008 IP
  5. katendarcy

    katendarcy Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Did you get an answer to your problem? I took a look at the link you posted, but I'm not sure I understand the issue... (or if there's even still one! : )
     
    katendarcy, Nov 16, 2008 IP
  6. motorcycleclub

    motorcycleclub Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The left hand menu does not work.
    I cannot understand why.
    can you help?
     
    motorcycleclub, Nov 16, 2008 IP
  7. katendarcy

    katendarcy Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Are you trying to get the layout to be as it is on the other pages? (Links on top of each other...) I guess I'm not clear on what the issue is. I tried the links and they seemed to work. Could you give me more of an idea of what you're going for? (I'm happy to help if I can.)
     
    katendarcy, Nov 16, 2008 IP
  8. katendarcy

    katendarcy Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    So I took another look, and a couple thoughts: First, it seems that most of your file paths start with "../motorcycles". If you already know this, just ignore what I'm about to say, but... I'm not sure that you need that. The ".." at the beginning says to go up one directory and then follow the path from there. But, it seems that all of your files are inside of the motorcycle directory. So, simply using a relative path would work well. For instance, "<a href='../motorcycles/index.html'..." becomes "<a href='index.html'...", and so on.

    Second, a recommendation: It's a good practice to get into using a list for your navigation. It is, after all, a list of items. For instance:
    <ul id="nav">
    <li>Item 1</li>
    <li>Item 2</li>
    </ul>

    With CSS, you can make the list appear as block elements or inline, next to each other. Sometimes IE renders lists differently, so if you try it and you have a problem, let me know. (Of course, you might not want to do it that way. It's totally up to you.)

    Now, neither of those things may help you, so if you're still having a problem with your links, let me know.
     
    katendarcy, Nov 16, 2008 IP
  9. motorcycleclub

    motorcycleclub Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks. Appreciate your input.
     
    motorcycleclub, Nov 17, 2008 IP
  10. katendarcy

    katendarcy Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No problem. Like I said, if that's not the problem, or if it doesn't work, feel free to let me know. I'd be glad to help if I can.
     
    katendarcy, Nov 17, 2008 IP