- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I love how https://css-tricks.com is super simple when viewed using older browsers like IE6 and IE7. Chris didn’t bother hassling with making the site look graphical in those browsers. I was wondering if anyone has a standard reset for doing so. I could write one myself, but if anyone has already done the work of writing an IE6 or IE7 and earlier reset, I would flip.
Suggestions anyone?
There is actually an IE6 stylesheet floating around out there already.
I followed the link to the reference URL and got this stylesheet:
http://stuffandnonsense.co.uk/content/demo/2009/05/21/ie6.0.3.css
I’m going to try it out. I’ll post my results.
I’m also going to use Modernizr to call the styles so I don’t have to load a separate sheet w/ an IF-statement.
That got me a step closer. What I’m going to have to do is NOT load my usual stylesheets in anything before IE7. Should do the trick. Any thoughts on best method or if it’s a good idea or not?
Let me rephrase. How can, in the event that IE6 loads, I NOT load my usual stylesheet? Hm I may need to rethink this from the beginning.
Talking to myself again, but here’s what I did.
I used browser.php by this guy:
http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/
And I wrote an if statement in PHP so that if IE6 is the browser, it loads my universal IE6 stylesheet, but if any other browser is detected, everything proceeds as usual.
Still open to any suggestions. Thanks guys!
Here’s my PHP:
include('php/browser.php');
$browser = new Browser();
?>
getBrowser() != 'IE' && $browser->getVersion() != 6 ) : ?>