Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: IE 7.0 CSS Help

  1. #1
    gfX
    gfX is offline
    New Coder
    Join Date
    Feb 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE 7.0 CSS Help

    Hey guys,
    I have a website, and on the navigation when you hover over one of the links, it should have a drop down menu for more options.
    This works for Firefox and older versions of Internet Explorer. However, for Internet Explorer 7.0, I get the error: http://www.imagenerd.com/show.php?_img=image001WMic.jpg

    Does anyone know a fix for this, or what I should do?
    The link: www.enforcedmedia.com/hickslandscaping2/

    Hover over the Residental link.
    Thanks a ton!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Firefox has an error in the js console as well not just IE7. Its pointing to this line
    Code:
    var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    Its looking for an element with id="treemenu1" but you have no such element. Reread the instructions from where you got the menu from. You'll notice you've made a mistake.

    http://www.dynamicdrive.com/style/cs...nu-horizontal/
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    gfX
    gfX is offline
    New Coder
    Join Date
    Feb 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I added <ul id="treemenu1"> instead of <ul> and it got rid of that error, but the drop down menu's will not appear in IE 7. And in FF and IE6, The menu's are a little messed up.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can't expect things to work your way when your code is bad. Validate your code: http://validator.w3.org

    More specifically use a full valid doctype or IE7 won't work as expected. It actually tries to behave like IE6.

    BTW your url doesn't work anymore. It did before.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •