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.

IE conditional comments

Featured Replies

Hi ,

I want to serve html tag with class="oldie" only for IE versions older than 9.
I'm using this

<!DOCTYPE HTML>
<!--[if lt IE 9]><html class="oldie"><![endif]-->
<!--[if gt IE 8]><!--><html class="" lang="sk"><!--<![endif]-->
<head> ....

However can't make it work , tested on browsershots and IE11 emulating IE8 . I cannot figure out what's wrong and already browsed plenty of google pages about it.

Class should ensure that site is displayed without background image.

Anyone can give me advice what am I doing wrong ?
Site address is http://www.pizzamako.sk ...

Thx!

edit:

I finally make it work / still dunno how .. but in IE11 simulating older IEs it isn't working and what is weird that some different conditionals are working there.

Edited by NiBi18

Simulating older IE versions is not very reliable, I find the sites are not rendered correctly.

I would recommended looking at:

Modernizr - http://modernizr.com/

Conditionizr - http://conditionizr.com/

and for IE testing - http://www.my-debugbar.com/wiki/IETester/HomePage (surprisingly good).

Of course it's best to test on native IE, if you have the chance.

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.