Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ie6 & 7 compatibility - help!

Featured Replies

Hi. I am having major issues with ie6 & ie7. I have designed a simple portfolio site which of course doesn't render properly in ie6 (and also in this case ie7). So, I have attached conditional comments and created a stylesheet for each. What I cannot understand is why I cannot get each browser to use it's own stylesheet. I've had so many problems: ie6 would ONLY reference the ie6.css file if the conditional comment was:

 

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="css/ie6.css">

<![endif]-->

 

Surely this means ONLY IF the browser is ie7? But ie6 would NOT pick up:

 

<!--[if IE 6]>

<link rel="stylesheet" type="text/css" href="css/ie6.css" />

<![endif]-->

 

Surely this means ONLY IF the browser is ie6?!!

 

I currently have:

 

<!--[if IE 6]>

<link rel="stylesheet" type="text/css" href="css/ie6.css" />

<![endif]-->

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="css/ie7.css">

<![endif]-->

 

And both browsers will only pick up the ie7.css file.

 

I'm getting very confused (and frustrated) here as I just don't understand it. Shall I reinstall my 'multiple ie' pack as this could have a glitch in it?

 

The url to view this issue is: http://www.samdelara.co.uk/new-design/

 

Any help would be massively appreciated.

 

Sam

try putting your

<!--[if IE 6]>

<link rel="stylesheet" type="text/css" href="css/ie6.css" />

<![endif]-->

 

beneath your ie7 link

 

I dont know why but I had a problem with a conditional style sheet and when I placed the link at the bottom it worked

 

could be the same

  • Author

try putting your

<!--[if IE 6]>

<link rel="stylesheet" type="text/css" href="css/ie6.css" />

<![endif]-->

 

beneath your ie7 link

 

I dont know why but I had a problem with a conditional style sheet and when I placed the link at the bottom it worked

 

could be the same

 

Hi mteam,

 

Many thanks for the reply although that didn't work and in any case, ie6 refuses to reference ie6.css EVEN when all I have is:-

 

<!--[if IE 6]>

<link rel="stylesheet" type="text/css" href="css/ie6.css" />

<![endif]-->

 

I'm close to tearing my hair out! Cannot understand why it's not working....

 

Sam

I've had a quick look and it seems to me it is picking up your ie6.css.

 

The reason I think it is is that your "why use a freelancer" div has a yellow border as per your ie6.css file.

  • Author

I've had a quick look and it seems to me it is picking up your ie6.css.

 

The reason I think it is is that your "why use a freelancer" div has a yellow border as per your ie6.css file.

 

Hi HogIT.

 

Yes you're right. My problem was the multiple ie program I had installed. I have just removed it and reinstalled it and hey presto - all of a sudden the ie6 css works!

 

Many thanks for taking the time to have a look and reply.

 

Sam

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.