9999 Posted August 13, 2010 Share Posted August 13, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/210682-site-does-not-display-well-in-ie6-and-older/ Share on other sites More sharing options...
Hollows Posted August 23, 2010 Share Posted August 23, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/210682-site-does-not-display-well-in-ie6-and-older/#findComment-1102630 Share on other sites More sharing options...
Omirion Posted August 23, 2010 Share Posted August 23, 2010 Or just place a TXT on your layout saying "You're browser is 10 years old, change it" Quote Link to comment https://forums.phpfreaks.com/topic/210682-site-does-not-display-well-in-ie6-and-older/#findComment-1102897 Share on other sites More sharing options...
JasonLewis Posted August 24, 2010 Share Posted August 24, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/210682-site-does-not-display-well-in-ie6-and-older/#findComment-1102935 Share on other sites More sharing options...
papillonstudios Posted August 28, 2010 Share Posted August 28, 2010 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<ype=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. Quote Link to comment https://forums.phpfreaks.com/topic/210682-site-does-not-display-well-in-ie6-and-older/#findComment-1104645 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.