Even though CSS3 is not fully supported yet, many web developers are starting to use many of the new techniques introduced. CSS3 has taken a very large step forward in helping web developers get away from importing mass amounts of images/JavaScript and making it possible to do this only by using pure CSS. I am going to go over 10 CSS3 features you will love to start using!
#border_radius {
background-color: #4b0a03;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
color: #fff;
font-weight: bold;
padding: 15px;
text-align: center;
text-shadow: 1px 1px 1px #000;
}
#border_image {
border-width: 0 10px;
color: #fff;
font-size: 20px;
font-weight: bold;
-moz-border-image: url(../images/RButton.png) 0 12 0 12 stretch stretch;
-webkit-border-image: url(../images/RButton.png) 0 12 0 12 stretch stretch;
padding: 18px;
text-align: center;
text-shadow: 1px 1px 1px #000;
}
#box_shadow {
background-color: #fff;
border: 1px solid #eee;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-moz-box-shadow: 0 0 5px rgba(173, 173, 173, 0.55);
-webkit-box-shadow: 0 0 5px rgba(173, 173, 173, 0.55);
padding: 15px;
text-align: center;
}
#multi-column {
background-color: #fff;
border: 1px solid #eee;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
/* For Mozilla: */
-moz-column-gap: 1em;
-moz-column-rule: 1px solid #000;
-moz-column-count: 3;
/* For WebKit: */
-webkit-column-gap: 1em;
-webkitcolumn-rule: 1px solid #000;
-webkit-column-count: 3;
padding: 15px;
}
#multiple_backgrounds {
background: url(../images/bottom.png) bottom 117px no-repeat,
url(../images/top.png) top left no-repeat;
margin-bottom: 10px;
height: 47px;
width: 254px;
}
This has a custom font.
@font-face {
font-family: "MarketingScript";
src: url(../font/MarketingScript.ttf) format("opentype");
}
#font-face {
font-size: 34px;
font-family: "MarketingScript", sans-serif;
}
li[title^=a] {
background: #4b0a03;
color: #fff;
list-style: none;
padding: 5px;
}
li[title^=b] {
background: #fff;
color: #333;
list-style: none;
}
First, Third and Fifth List Elements should be yellow.
#nth-child li:nth-child(2n+1) {
background: #4b0a03;
color: #fff;
}
background: rgba(000, 000, 000, 0.7);
padding: 20px;
color:#fff;