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.

css if ie not working HELP!

Featured Replies

I have tried various if IE Conditional comments and none seem to work.

I need one to work if IE6

 

This one is not working: <!--[if IE 6]>

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

<![endif]-->

 

Can anyone help please?

The first / in the url may not be needed. I never use a / if the file or folder is in the same folder/directory as the page you are coding. Try

<!--[if IE 6]>

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

<![endif]-->

 

Is your folder called stylesheet in the same folder/directory as the page file?

 

The conditional comment needs to be placed in the head section AFTER any other stylesheet link(s).

 

People often don't put a space between IE and 6 but you have a space, so that shouldn't be the problem.

 

If you have inline styles (those in the html tags starting style="..." ) then they will take priority as they will be processed last.

  • Author

Thanks I have tried everything I can think of.

With and without leading / IE 6 & IE6

 

Nothing seems to work.

Also make sure you IE conditional stylesheet link appears in your code after your other stylesheet links, or IE may pick up the conditional one, and then the main one afterwards, thus rendering it useless.

  • Author

Thanks for the help guys,

 

Found an even better solution instead of separate style sheets.

 

Here it is and saves loads of time

 

color: #999; /* shows in all browsers */

*color: #999; /* notice the * before the property - shows in IE7 and below */

_color: #999; /* notice the _ before the property - shows in IE6 and below */

 

And So On... :D

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.