Quick Nav:  Online Store   |   Login | Register

Problems with menu in Internet Explorer 6

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
JAZZYLILY
<20 Posts
Posts:11


05/11/2008 2:15 PM  

HI,  I have a problem with my menu in internet explorer 6.  It seems ok in internet explorer 7 and Firefox but with internet explorer 6 the menu seems to go down the page rather than across.  Also there are no drop downs.  Any idea what this could be? 

Thanks Sarah

John Mitchell
Posts:3276


05/12/2008 7:58 AM  
Hi Sarah,
For the wrapping, it may help to make the container of the menu a fixed width.
Something like:
#nav { width:1000px;}

For the hover, I'm not sure why it wouldn't work in IE6.
The hover works in IE because of the classes in the CSS that have .hover instead of :hover ( a period instead of a semi-colon).
The NavMouseover and NavMouseout set these class names, so it should work as long as you have those classes defined in your CSS.
I don't have IE6 to test wit right now, but I'll try looking at the CSS in more detail to see why it wouldn't work.

JAZZYLILY
<20 Posts
Posts:11


05/23/2008 9:34 AM  

Hi John,  I still havent managed to solve this one.  Can you help me please.

I have this in my template file. Is this what you mean?  Do I need to put somethign on the css file for this?


   
    [script removed]         function NavMouseover(img) {
   img.parentNode.className+='hover';
            if (img.className != 'SelectedItem')
                img.src=img.src.replace('.jpg','_Over.jpg');
         }
        function NavMouseout(img) {
   img.parentNode.className.replace('hover', '');
            if (img.className != 'SelectedItem')
                img.src=img.src.replace('_Over.jpg','.jpg');
         }
 [script removed]

Thanks Sarah

John Mitchell
Posts:3276


05/23/2008 12:54 PM  

Hi Sarah,

I took some time to study this in detail and on IE6 I think the problem with the menu not stretching out horizontally is the width on the #nav LI class. Since it is width:auto, it is expanding to fill its parent container.

The hover issue is because the code is changing the class on the A (parentNode of the IMG), but the CSS has rules defined for the LI.

If you change img.parentNode.className+='hover'; to img.parentNode.parentNode.className+='hover'; it should fix that for IE6.

I have attached an updated suckerfish.css which I modified from your current one.


Attachment: 1523544715571.txt

JAZZYLILY
<20 Posts
Posts:11


05/23/2008 3:14 PM  

Thanks very much for this.  A few minor adjustments and I managed to get it just about right.

Just one more question, is there anyway to get the width of one item wider than the others or is this just asking a bit too much??

Thanks again,  Sarah

John Mitchell
Posts:3276


05/23/2008 3:20 PM  

That depends on what item you are talking about, and if there is an ID that we can use to target it specifically.

If you are using templates then we can add the TabId as the ID of the item and then get to it that way.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Problems with menu in Internet Explorer 6



ActiveForums 3.7
Powered by: Snapsis Software