View Single Post
  #2 (permalink)  
Old 09-19-2009, 09:42 AM
ishkey's Avatar
ishkey ishkey is offline
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,776
ishkey will become famous soon enough
Default

Couldn't live without them - MIN/MAX-WIDTH and MIN/MAX-HEIGHT
IE6 was born in 2001 so I wouldn't look back any further. You code for today not for those frozen in time. This javascript "minmax.js" has worked for me for a long time and has been out since 2003 http://www.doxdesk.com/software/js/minmax.html
The nice thing about the java method is you can easily go back later to remove it when the old browsers are gone or just wrap it up in one main js file with all your other library scripts and have one call on the page.

or you could go the seperate css file hack method
Quote:
<link href="main.css" rel="stylesheet" type="text/css">
<!--[if IE 7]>
<link href="ie7.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 6]>
<link href="ie6.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 5]>
<link href="ie5.css" rel="stylesheet" type="text/css">
<![endif]-->
or you could write it like this
Quote:
You can do this:
<!--[if IE]><![if gte IE 7]><![endif]-->
<p>This is shown in downlevel browsers and IE7 or later.</p>
<!--[if IE]><![endif]><![endif]-->
The problem with Conditional Comments: <![if IE]> ... <![endif]> . Not only does it look ugly, it doesn't even validate!
__________________

Consultant - Programmer - WebMaster
cleandeck - lawn mower undercoating
wilmargraphite - graphite lubricants
Reply With Quote