IE vs restu' lumii

IE6 sux big time, IE7 sux a lil' bit, and IE8 tryes to keep the smell away from the average user... So what's to do? I mean i'm a FF fan but what about those that don't ever use IE or just use it occasionally? Here's just a few ideas why there's a difference between browsers:
1. IE6 does not support .png images
2. IE6 alignment is a bitch (don't ask)
3. IE6 CSS and XHTML standards sux...
4. Basically IE SUX!

Solutions? Well there might be some ... like creating stylesheets to match each browser demands...
Example:


<html>
<head>
<title>Do you see this page right?</title>

<![if !IE]>
<link rel="stylesheet" href="/css/OTHERStemplate.css" type="text/css" />
<![endif]>

<!--[if IE]>
<link rel="stylesheet" href="/css/IEtemplate.css" type="text/css" />
<![endif]-->

</head>
<body>
.....



Microsoft actually gave us some adivces in using IF so here's a basic "Browser quiz" to determinate some conditions:

<!--[if IE]><p>You are using Internet Explorer.</p><![endif]-->
<![if !IE]><p>You are not using Internet Explorer.</p><![endif]>

<!--[if IE 7]><p>Welcome to Internet Explorer 7!</p><![endif]-->
<!--[if !(IE 7)]><p>You are not using version 7.</p><![endif]-->

<!--[if gte IE 7]><p>You are using IE 7 or greater.</p><![endif]-->
<!--[if (IE 5)]><p>You are using IE 5 (any version).</p><![endif]-->
<!--[if (gte IE 5.5)&(lt IE 7)]><p>You are using IE 5.5 or IE 6.</p><![endif]-->
<!--[if lt IE 5.5]><p>Please upgrade your version of Internet Explorer.</p><![endif]-->

<!--[if true]>You are using an <em>uplevel</em> browser.<![endif]-->
<![if false]>You are using a <em>downlevel</em> browser.<![endif]>

<!--[if true]><![if IE 7]><p>This nested comment is displayed in IE 7.</p><![endif]><![endif]-->

0 comentarii: