Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Styling reset template for use with Modernizr and old IE

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #34885
    TechStudio
    Member

    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?

    #89535
    TheDoc
    Member

    There is actually an IE6 stylesheet floating around out there already.

    https://css-tricks.com/snippets/html/universal-ie6-css/

    #89559
    TechStudio
    Member

    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.

    #89560
    TechStudio
    Member

    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?

    #89562
    TechStudio
    Member

    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.

    #89563
    TechStudio
    Member

    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!

    #89564
    TechStudio
    Member

    Here’s my PHP:


    include('php/browser.php');
    $browser = new Browser();
    ?>
    getBrowser() != 'IE' && $browser->getVersion() != 6 ) : ?>










Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.