Giter Club home page Giter Club logo

pie's Introduction

                                         ============================
                                         ======      PIE       ======
                                         ============================

                                                 Mmmmmm, pie.


CSS Level 3 brings with it some incredibly powerful styling features.  Rounded corners, soft drop shadows, gradient
fills, and so on.  These are the kinds of elements our designer friends love to use because they make for attractive
sites, but are difficult and time-consuming to implement, involving complex sprite images, extra non-semantic markup,
large JavaScript libraries, and other lovely hacks.

CSS3 promises to do away with all that!  But as we all know, due to Internet Explorer's lack of support for any of
these features, we must be patient and refrain from using them, and make do with the same old tedious techniques for
the foreseeable future.

Or must we?

PIE stands for Progressive Internet Explorer.  It is an IE attached behavior which, when applied to an element, allows
IE to recognize and display a number of CSS3 properties.  Consider, if you will, the following CSS:

    #myElement {
        background: #EEE;
        padding: 2em;
        -moz-border-radius: 1em;
        -webkit-border-radius: 1em;
        border-radius: 1em;
    }

This results in a box with nicely rounded corners in any of today's modern browsers, except of course for IE 6, 7, or
8, which all display a square box.  However, add the following single rule to that CSS:

    #myElement {
        ...
        behavior: url(PIE.htc);
    }

Now the exact same rounded corners appear in IE!  That's all there is to it.  No, really, I mean it.

PIE currently has full or partial support for the following CSS3 features:

    * border-radius
    * box-shadow
    * border-image
    * multiple background images
    * linear-gradient as background image

Other features such as radial gradients, multiple box shadows, and many many bugfixes are under development.  This is
still a young project which has a long way to go, but is already pretty remarkable!  We're working on getting a site
up with documentation and examples.  Contributions (code, documentation, testing) are greatly appreciated!

pie's People

Contributors

betalb avatar cssjs avatar kijin avatar lojjic avatar nfang avatar seb33300 avatar ziggythehamster avatar

Watchers

 avatar

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.