Jump to content

Site breaks badly in IE6


AnnieKay

Recommended Posts

Hi all

 

I'm working on an image gallery made purely with CSS and in FF and IE7 it seems to work fine (for the most part, a few pixel tweaks are needed in IE7), but breaks badly in IE6 - I just can't figure out why!

 

Here's the link to the website:

http://www.gofair.dreamhosters.com/final/album_display.html

 

and here's the css:

http://www.gofair.dreamhosters.com/final/css/gallery_styles.css

 

 

What's happening that's making it look so wierd in IE6?

 

Also, any general comments about my choices of selectors and way I have coded are much appreciated as I'm still learning CSS and am finding it hard to discern what the best way of doing things is!

 

Thank you all in advance :)

Annie

Link to comment
Share on other sites

Remember this ... LVHA.

 

LVHA. LoVeHAte.

 

link, visited, hover, active.

 

This just starts your problem:

 

a, a:hover, a:visited {

text-decoration:none; }

 

But you continue using the pseudo links in the wrong order through-out AND add the :focus pseudo element.

 

When :hover is listed BEFORE :visited AND without the other two pseudo link elements defined (link, active) the results are strange  because the pseudo links all have an equal specificity of 1.1.

 

IE 6 particularly just goes nuts over this.

 

You should lose the a{} in all cases in your css and replace it with the 4 proper pseudo :links - particularly since you are also using the :focus :hover css2 pseudo elements.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.