Git Product home page Git Product logo

css3-for-ie's Introduction

CSS3 for IE Readme:

First off, the easy stuff - This work and all other works in this folder are ©2010, Jesse Ditson. Feel free to move, change, or redistribute the IECSS3 class, just don't modify the signature on the header.

Usage for this class is outlined in the included usage.php file. It's very simple, I recommend calling the draw() method from inside your <head>, but the script will work from anywhere on the page.

The purpose of this class is to abolish conditional stylesheets for IE compatibility, and instead auto detect when a user is on IE, and substitute all the incompatible selectors with jQuery or prototype inline styling at runtime.

For the substitutions to work, make sure that you're telling IE to display the page in Standards mode, this script won't work in quirks mode (well, it won't work well. It'll still do stuff.)

You can tell the browser to be in Standards mode by declaring a doctype, like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

More info about doctypes can be found here:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

and a good layman's description can be found here:
http://www.quirksmode.org/css/quirksmode.html

Please let me know if you run into any issues with the script, and I'll try to fix them. This script is however provided with no warrantee, and I'm pretty busy, so I unfortunately can't make any promises.

If you feel so inclined, I do accept donations via paypal, ([email protected]) but in no way expect them.

Enjoy!

Jesse Ditson
[email protected]
jesseditson.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.