Use CSS3 Draw a box and support IE6~IE8

Pie.... XD

Use css3 hack draw this box, and support the IE6~IE8

HOWTO

Source: CSS3 PIE: CSS3 decorations for IE

  1. put http://css3pie.com/PIE.htc in your webroot.
  2. write this css.
    
    #box {
        border: 1px solid #696;
        padding: 60px 0;
        text-align: center;
        width: 200px;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
        -webkit-box-shadow: #666 0px 2px 3px;
        -moz-box-shadow: #666 0px 2px 3px;
        box-shadow: #666 0px 2px 3px;
        background: #EEFF99;
        background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EEFF99), to(#66EE33));
        background: -moz-linear-gradient(#EEFF99, #66EE33);
        -pie-background: linear-gradient(#EEFF99, #66EE33);
        behavior: url(PIE.htc);
    }
        
  3. add <div id="#box"></div> in html
  4. show in any browser.

Document Date: 2010-07-14