Jump to content

Site does not display well in IE6 and older


9999

Recommended Posts

I recently viewed this site: www.tinyurl.com/29k7x2z and was thinking about modeling a page based on its layout.  The layout shifts all over the place in IE6 and older while working fine in FF, Opera and even IE7. I'm thinking a couple of lines fix in the CSS might work.  Does anyone have ideas?

Link to comment
Share on other sites

  • 2 weeks later...

I recently viewed this site: www.tinyurl.com/29k7x2z and was thinking about modeling a page based on its layout.  The layout shifts all over the place in IE6 and older while working fine in FF, Opera and even IE7. I'm thinking a couple of lines fix in the CSS might work.  Does anyone have ideas?

 

You could create a new style sheet with the fixes you need, then just use

<!--[if IE 6]>

<link rel="stylesheet" href="http://YOUR WEBSITE URL/CSS FOLDER/ie6_only.css"  type="text/css" media="screen" />

<![endif]-->

AFTER your global style sheet, that way IE7+ and other browsers will read the original and IE6 will go on the ie6 sheet

 

 

Hope that helps

 

 

Link to comment
Share on other sites

Or just place a TXT on your layout saying "You're browser is 10 years old, change it"

 

I agree, I barely support IE6 anymore because you need way too many hacks just to make something simple work. If it works in IE6 it's a miracle. If they have IE5.5, then kill me now.

Link to comment
Share on other sites

i also agree dont worry about IE6 or older. they are way out of date. but what you could do is this.

 

Download and include this file in your site.

http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/

<?php include('browser.php');?>

 

then put this at the very top of your main page

$browser = new Browser();
if( $browser->getBrowser() == Browser::BROWSER_IE && $browser->getVersion() <=6 ) {
echo 'Please Update your Internet Explorer Browser to the latest version<a href="http://dw.com.com/redir?edId=3&siteId=4&oId=3000-2356_4-10013275&ontId=2356_4&spi=b609b464ecda1d2e1cb6214d6f5a4fbd&lop=link&tag=tdw_dltext&ltype=dl_dlnow&pid=11013991&mfgId=50119&merId=50119&pguid=FIBPyQoPiBYAAFtrF7AAAAA4&destUrl=http%3A%2F%2Fclk.atdmt.com%2FMRT%2Fgo%2F213985719%2Fdirect%3Bwi.1%3Bhi.1%2F01%2F" target="_new"> Click here </a>to download it';
}

 

I did this on one of the sites i made.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.