Code problem! ANY help appreciated!!!

Discussion in 'HTML & Website Design' started by prilep, Oct 8, 2009.

  1. #1
    Hi,

    I am trying to make a drop down menu for a personal project I am creating. So i went here http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm got the code and set it up. It works on most of my templates but on my current one it doesnt work :(.

    This code WORKS:
    <a href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu1">Home</a><span class="hide"> | </span>
    HTML:
    This doesnt:
    <a class="activenavitab" href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu1">Home</a><span class="hide"> | </span>
    HTML:

    If the class is there my drop down does not work if in the line there is class=""... Help!

    - Prilep :)
     
    prilep, Oct 8, 2009 IP
  2. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #2
    You have two classes in your code, try

    <a href="http://www.dynamicdrive.com" class="menuanchorclass activenavitab" rel="anylinkmenu1">Home</a><span class="hide"> | </span>
     
    mjewel, Oct 8, 2009 IP
  3. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Just tried that and its not working still the same result :(.

    - Prilep :)
     
    prilep, Oct 9, 2009 IP
  4. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Well is sounds like something with that additional class is conflicting with the menuanchor class. Without knowing the url to the problem, it's impossible to say.
     
    mjewel, Oct 9, 2009 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Dan Schulz, Oct 9, 2009 IP
  6. Valiant

    Valiant Peon

    Messages:
    284
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Instead of using two classes. Perhaps try using an ID and a Class.
     
    Valiant, Oct 9, 2009 IP
  7. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #7
    How would I do that?

    - Prilep :)
     
    prilep, Oct 9, 2009 IP
  8. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #8
    You should look at a basic css tutorial for the difference between a class and an ID, but that probably isn't going to solve you problem.

    I understand if you don't want to post the url, but no one is going to be able to tell you what is wrong without seeing it. Perhaps you could hire a css coder to fix it.
     
    mjewel, Oct 9, 2009 IP
  9. mydreams.success@gmail.co

    mydreams.success@gmail.co Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you can use first class using span like <span class=""> the add your link inside it using other class. May this help you. Not sure.
    do as <span class=""><a href="" class="2ndclass"></a></span>
     
  10. Martin K

    Martin K Active Member

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #10
    ID is the same as class but in the CSS instead .someclass type #someclass
    or do as mydreams.success@gmail.co says
     
    Martin K, Oct 12, 2009 IP
  11. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #11
    None of the methods above work. Any other idea?

    - Prilep :_
     
    prilep, Oct 15, 2009 IP
  12. jj1

    jj1 Active Member

    Messages:
    892
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #12
    I use opencube for drop downs - I believe it is free/cheap for personal non commerical websites.
     
    jj1, Oct 16, 2009 IP
  13. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #13
    For some reason out of no were this started working... Thanks!!

    - Prilep :)
     
    prilep, Oct 16, 2009 IP