Designer? Programmer? Enthusiast? Join Open Designs Now!

Open Designs Forum » Site Specific

I.E. Conditional Statement Issues

(3 posts)
  • Started 2 years ago by MarkH
  • Latest reply from uberlemurguy

No tags yet.

  1. MarkH
    Member

    Hey, I'm new to this site. I was recommended to come here by conartistdesigns.
    I'm having some trouble with my website navigation menu (http://humesm.gknu.com/).
    When I open it in Internet Explorer, the javascript menu appears 40pixels to the left. I added the css rule "margin-left: -40px;" and that fixed the menu for all other browsers, but I.E. likes it at 0px.
    I've tried a conditional statement, but i cant get it working.
    Could anyone offer any help or suggestions on how to fix my problem?

    Hope I can become part of the community.
    -Mark

    Posted 2 years ago #
  2. MarkH
    Member

    The conditional statement is this:
    <!--[if IE]>
    <script type="text/javascript">
    var navobj= document.getElementById('imageMenu');
    navobj.style.marginLeft = '0px';
    </script>
    <![endif]-->

    Posted 2 years ago #
  3. uberlemurguy
    Moderator

    i don't see the conditional statement anywhere

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.