<style type="text/css">
.box {
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
background-color: #ccc;
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.box {
box-shadow: 5px 5px 2px black;
-moz-box-shadow: 5px 5px 2px black;
-webkit-box-shadow: 5px 5px 2px black;
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.font {
font-size: 20px;
color: #2178d9;
}
.font {
text-shadow: 0 1px 0 #000;
}
</style>
<span class="font">
Your fancy text here
</span>
Learn more:
<style type="text/css">
@font-face {
font-family: 'Loyal';
src: url('loyal.ttf');
}
.font {
font-family: Loyal;
font-size: 20px;
}
</style>
<span class="font">
Text with your fancy font!
</span>
Learn more:
<style type="text/css">
#gradient {
height: 100px;
background-color: #1a82f7;
background: url(images/linear_bg_1.png);
background: -moz-linear-gradient(100% 100% 180deg, #2F2727, #1a82f7);
background: -webkit-gradient(linear, left top, right top, from(#1a82f7), to(#2F2727));
}
</style>
<div id="gradient">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.box {
opacity: .6;
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.box {
background: rgba(239, 182, 29, .25);
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.box {
background: #ccc url(images/xxx.jpg) no-repeat;
-webkit-background-size: 50%; /* Safari */
-o-background-size: 50%; /* Opera */
-khtml-background-size: 50%; /* Konqueror */
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.box {
width: 200px;
height: 150px;
background: url(images/text.png) center center no-repeat, url(images/bg.png) repeat-x;
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.columns {
-moz-column-count: 2;
-webkit-column-count: 2;
}
</style>
<div class="columns">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<p>Lorem ipsum dolor sit amet.</p>
</div>
Learn more:
<style type="text/css">
.box {
border-width: 20px;
-webkit-border-image: url(images/border.png) 27 round;
-moz-border-image: url(images/border.png) 27 round;
border-image: url(images/border.png) 27 round;
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
<style type="text/css">
.box {
position: relative;
-webkit-transition: top 300ms linear;
}
.box:hover {
top: 20px;
}
</style>
<div class="box">
<!--your content-->
</div>
Learn more:
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (1)
Commented: