CSS 3.0 with PIE

Objective: To recreate a box-shadow using CSS3.0

Problem encountered: CSS3.0 is not widely supported in IE browsers.

Solution: Use Progression Internet Explorer (PIE).

Code Example:

#subNavContainer {

/* css3 shadow styles*/
box-shadow: 2px 1px 3px #000;                 // CSS3.0
-moz-box-shadow: 2px 1px 3px #000;     // for Firefox
-webkit-box-shadow: 2px 1px 3px #000;  // for webkit based browsers like Chrome and Safari
behavior:url(/styles/PIE.htc);                       // Add this for CSS3.0 to work in IEs browsers
}

Download PIE:http://css3pie.com

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.