Go Back   Free website templates > Web Template Help > HTML - XHTML - CSS
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2009, 08:16 AM
mateiu_lk's Avatar
Junior Member
 
Join Date: Sep 2009
Posts: 3
mateiu_lk is on a distinguished road
Default Do you still use MIN/MAX-WIDTH and MIN/MAX-HEIGHT

Title is wrong , correct one should be : Do you use MIN/MAX-WIDTH and MIN/MAX-HEIGHT ??

I am building a liquid layout with percentage and wonder if I have to use MIN/MAX-WIDTH and MIN/MAX-HEIGHT , knowing that IE 6 and earlier versions do not support it. Do you use them ? Is there any rule available to avoid the bug ?

Last edited by CovertPea; 09-19-2009 at 09:18 AM.
Reply With Quote
  #2 (permalink)  
Old 09-19-2009, 10:42 AM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
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!
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:56 AM.



mouseover mouseover mouseover