List style / rollover image navigation disappears in IE on the Mac

This is a discussion on "List style / rollover image navigation disappears in IE on the Mac" within the Web Page Design section. This forum, and the thread "List style / rollover image navigation disappears in IE on the Mac are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 28th, 2006, 16:37
Junior Member
Join Date: Jan 2006
Location: Scotland, UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
List style / rollover image navigation disappears in IE on the Mac

Hi all, I wondered whether anyone could give me a helping hand here. I've created navigation for a site I'm working on from one image that contains all the on and off states for every button. I've then created styles for each button that change the position of the image to show the correct part of the navigation and also move on rollover.

I've tested this in the following browsers and it works fine:

PC - mozilla, opera, firefox, netscape, explorer [latest versions of all]
MAC - safari, opera, firefox, mozilla, netscape, explorer [latest versions of all]

And it works fine in all except explorer on the mac - suprise suprise. In this browser the navigation disappears completely and all you see is a white empty box where it should be.

Here is a link to the site so far:

http://www.heriot-toun.co.uk/studio/index.php

and here is the html code:

Code: Select all
<div id="navcontainer">
                <ul id="navlist">
                    <li><a href="/studio/index.php" class="studio_active" title="The Studio">The Studio</a></li>
                    <li><a href="/projects/index.php" class="projects" title="Current Projects">Current Projects</a></li>
                    <li><a href="/gettinghere/index.php" class="getting" title="Getting Here">Getting Here</a></li>
                    <li><a href="/booking/index.php" class="booking" title="Booking">Booking</a></li>
                    <li><a href="/archive/index.php" class="archive" title="Archive">Archive</a></li>
                </ul>
            </div>
and here is the CSS:
Code: Select all
#navlist {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

/* STUDIO LINK ################ */
.studio {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) 0px 0px no-repeat;
    display: block;
}
.studio:hover {
    background-position: -170px 0px;
}
.studio_active {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) -170px 0px no-repeat;
    display: block;
}

/* PROJECTS LINK ############## */
.projects {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) 0px -30px no-repeat;
    display: block;
}
.projects:hover {
    background-position: -170px -30px;
}
.projects_active {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) -170px -30px no-repeat;
    display: block;
}

/* GETTING LINK ############### */
.getting {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) 0px -60px no-repeat;
    display: block;
}
.getting:hover {
    background-position: -170px -60px;
}
.getting_active {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) -170px -60px no-repeat;
    display: block;
}

/* BOOKING LINK ############### */
.booking {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) 0px -90px no-repeat;
    display: block;
}
.booking:hover {
    background-position: -170px -90px;
}
.booking_active {
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) -170px -90px no-repeat;
    display: block;
}

/* ARCHIVE LINK ############### */
.archive{
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) 0px -120px no-repeat;
    display: block;
}
.archive:hover{
    background-position: -170px -120px;
}
.archive_active{
    height: 30px;
    width: 170px;
    text-indent: -10000px;
    overflow: hidden;
    background: url(assets/site_nav.gif) -170px -120px no-repeat;
    display: block;
}
Anyone got any ideas why this wouldn't work in Explorer on the Mac?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 28th, 2006, 17:39
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: List style / rollover image navigation disappears in IE on the Mac

I've read about this method and I commend you for doing it; it's so very nice. On the flip side, I've never done it myself. I can only imagine (but I may be wrong) that the text-indent and the overflow properties aren't needed.

Well, overflow maybe, but I would think that the height property is enough to ensure the <li>'s height, regardless of how high the background graphic is?

You already may know more than me about this method, but I'd start by removing both/one of those above mentioned properties.

Otherwise... IE for Mac is one of the few browsers I never really concern myself with. Most Mac users know 'whats up'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 28th, 2006, 19:07
Junior Member
Join Date: Jan 2006
Location: Scotland, UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: List style / rollover image navigation disappears in IE on the Mac

thanks for the comments - I'll give that a go. You're wrong though, I don't know much about this. it's the first time i've tried to implement this type of navigation and had a complete nightmare following tutorials online as I could never get them to work, hence starting from scratch and doing it all myself - my version is so long winded compared to others, but it works for me...well in everything but IE on the Mac.

I agree with you though with your comment on this browser and I normally don't bother myself with it, it's just this time a round I know several folk will be using it out of ignorance for something better - maybe this is the site to educate them to move on and use safari or firefox instead.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 28th, 2006, 20:04
Junior Member
Join Date: Jan 2006
Location: Scotland, UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: List style / rollover image navigation disappears in IE on the Mac

Hi there

I removed the overflow properties and it works in all the browsers now. the only issue I have now is that a line appears to the left of the active button and I guess this is the underline in the rollover text for the link which is hidden by using the text-indent: -10000px;

I added text-decoration: none; to all the styles, but it still appears on the button that is active, so I think I'm stuck with it, but could possibly add a background color and text color that is the same colour as the page background.

Thanks for your help - it's worked wonders!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 28th, 2006, 20:19
Junior Member
Join Date: Jan 2006
Location: Scotland, UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: List style / rollover image navigation disappears in IE on the Mac

Hi there

I've fixed it by creating these additional styles for the link states when they are within #navlist

Code: Select all
#navlist a:link, #navlist a:visited {
    color: #f2f2f2;
    background-color: #f2f2f2;
    text-decoration: none;
}

#navlist a:hover, #navlist a:active {
    text-decoration: none;
    background-color: #f2f2f2;
    color: #f2f2f2;
}
as adding the background colour and text colour to the individual styles for each nav had no effect.

Yippee!

I can go and relax for, mmm, what's left of the evening...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 1st, 2006, 00:43
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: List style / rollover image navigation disappears in IE on the Mac

Hooray, I sorta helped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
list, style, rollover, image, navigation, disappears, mac

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript rollover navigation through css supbtsup JavaScript Forum 2 May 27th, 2008 02:56
Using a list for navigation, can you center a list? tonyb Web Page Design 4 May 9th, 2008 16:26
<li> problem :: How to make appear list-style-image while choosing display:inline sayamish Web Page Design 2 Oct 21st, 2007 05:19
Putting navigation list on top of background image Kurt Web Page Design 5 Sep 16th, 2007 07:19
Rollover navigation menu SJMAC Web Page Design 14 Feb 7th, 2007 14:07


All times are GMT. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42