Tampilkan postingan dengan label CSS3. Tampilkan semua postingan
Tampilkan postingan dengan label CSS3. Tampilkan semua postingan

Rabu, 25 Juli 2012

Stroke Text CSS

Hello hello, siang sob... dapat Experiment menarik lagi nih :D hehee... kali ini tentang "Stroke Text" udah pernah liat Stroke text? kalau belum liat nih kaya gini nih Stroke text.















Kalau ngga salah Stoke itu adalah Outline (kalo di photoshop).

Stroke Text ternyata hanya menyatukan 4 shadow text, Fungsinya untuk membentuk bayangan di pinggir-pinggir text, sama halnya seperti border yang membuat garis di pinggir objek...

dan oke deh langsung aja cara pembuatannya.



CSS Stoke Text

#stroke{
font-family:arial black;
font-size:50px;
color: white;
text-shadow:
-5px -2px 1px #000,
-3px 3px 1px #000,
4px 3px 1px #000,
3px -3px 1px #000;
}

HTML Stroke Text

<div id='stroke'>STROKE</div>




KLIK DISINI UNTUK DEMO





Eh tapi ada lho yang lebih Rapih, ini fahmi Dapetin dari http://css-tricks.com.

nih liat dulu Gambar example nya...







Langsung saja cara pembuatannya cekidot :

CSS Stroke CSS-Trik

h1 {
font-family:Arial Black;
font-size:60px;
color: black;
text-fill-color: white;
text-stroke-width: 1px;
text-stroke-color: black;
-webkit-text-fill-color: white;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: black;
-moz-text-fill-color: white;
-moz-text-stroke-width: 1px;
-moz-text-stroke-color: black;
-o-text-fill-color: white;
-o-text-stroke-width: 1px;
-o-text-stroke-color: black;
}
Atau seperti ini :

Stroke Text with Text-shadow

h1 {
font-family:Arial Black;
font-size:60px;
-webkit-text-stroke: 1px black;
color: white;
text-shadow:
3px 3px 0 #000,
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}




KLIK DISINI UNTUK DEMO CSS-Trick





Selesai

Selasa, 24 Juli 2012

3D text dan Inset text

Iseng-iseng tadi bikin experiment mencoba coba hal baru, eh malah jadi 3D text dan Inset text, disini baru fahmi paham bahwa cara bikin teks 3D ternyata ga susah-susah amat. Terkadang apa yang di lihat bagus ga serumit pembuatannya dan begitu juga sebaliknya... Cuma mainin teks shadow minimal 2 Shadow, di pasin Vertikal sama Horizontal jangan lupa warna di kontrasin terus jadi deh.

Inset juga hampir sama kaya 3D cuma kalau Inset lebih mainin ke Rgba color.

Soalnya untuk mentransparankan warna...

contohnya seperti ini.

CSS Inset Text

body{
background:#C92E2E;
}
#inset{
font-family:Arial Black;
font-size:100px;
color:rgba(0, 0, 0, 0.1);
text-shadow: 3px 3px 5px #C92E2E, 0 0 0 rgba(0, 0, 0, 0.8);
letter-spacing:-10px;
text-transform:uppercase;
}

HTML Inset Text

<div id='inset'>Inset</div>

CSS 3D Text

#IW-Net{
font-family:Arial Black;
font-size:100px;
color:#A60518;
letter-spacing:-10px;
text-transform:uppercase;
text-shadow:0 6px 1px #750000, 1px 5px 10px #000;
}​

HTML 3D Text

<div id='IW-Net'>indonesia</div>








KLIK DISINI UNTUK DEMO





Jumat, 20 Juli 2012

Edit Template

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE html>

<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'><head><meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/><b:if cond='data:blog.pageType == &quot;index&quot;'><title><data:blog.pageTitle/></title><b:else/><title><data:blog.pageName/></title></b:if><meta content='URANG KURAI' name='description'/><meta content='blogger' name='generator'/><link href='/atom.xml' rel='alternate' title='west sumatera - Atom' type='application/atom+xml'/><link href='/rss.xml' rel='alternate' title='west sumatera - RSS' type='application/rss+xml'/><!-- <body><div></div> -->

<b:skin><![CDATA[/*



/*

Name : blogazine-book

Designed by: urangkurai (http://urang-kurai.blogspot.com/)

*/



.pagetitle{

text-align: center;

padding:10px;



}

*{ margin: 0; padding: 0; }



body {

margin: 0 auto;

padding: 0;

font-family:"lucida grande",tahoma,verdana,arial,sans-serif;

line-height: 1.2;

color:#000;



background: #E7EBF2;

}



a:link {

color:#3B5998;

text-decoration: none;

}



a:visited {

color: #3B5998;

text-decoration: none;

}

a:hover {

text-decoration: underline;

color: #7795D5;

}



img {

border: 0;

margin: 0;

}



.clear { clear: both; }



/*

CSS BUAT HOME PAGE

*/

#home-page {

width: 940px;

border: 10px solid #C3CCDF;

border-bottom: none;

margin: 40px auto 80px;

text-align: center;



}



#home-page div {

border-bottom: 8px solid #C3CCDF;

overflow: auto;

}



#home-page h1 {

color:#3B5998;

font-size: 100px;

letter-spacing: -2px;

line-height: 1.0em;

}





#home-page .name-title {

padding: 60px 0;

}

#home-page .name-title p {

font-size: 26px;

text-transform: uppercase;

font-weight: 200;

letter-spacing: 0.35em;

margin-bottom: 0.4em;

}



#home-page h2 {

font-size: 26px;

text-transform: uppercase;

font-weight: 600;

letter-spacing: 0.35em;

padding: 10px 0 ;

border-bottom: 10px solid #C3CCDF;

margin-bottom: 0;

}



#home-page h2:before { content: &#39;.&#39;; }

#home-page h2:after { content: &#39;.&#39;; }



#home-page .blogging div {

float: left;

width: 465px;

padding: 80px 0;

border-right: 10px solid #C3CCDF;

}







#home-page .blogging h3 {

font-size: 50px;

text-transform: uppercase;

font-weight: 800;

line-height: 0.8em;

margin-bottom: 10px;

}



#home-page p {

margin-bottom: 0;

font-size: 16px;

}





#home-page div .omega {

border-right: none;

}





/*

KOLOM POST DI HALAMAN DEPAN

*/

.box

{

border-bottom:3px solid #C4CDE0;



}



.boxmeta

{

width:150px;

float:left;

padding-right:0px;

padding:3px;

border-right:3px solid #C4CDE0;

background:#fff;

}



.boxmeta span

{

font:10px/10px arial,sans serif;

display:block;

text-transform:uppercase;

color:#222;

}



.boxmeta span.author

{

background:#EDEFF4 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDcLiS6SwruwGs7XbYaH7R9pSwtZaYYPDZgjgvKPrXlsjtFFkkHeMENKM_PmXayWBrJ2TDAt6ibHV5JWHTH1xYr4nLlChgt4L9KuGwoZB0RRYCxM2xrNVE2c2SZgFY1z-YCGoKp4P698A/s0/user.png) no-repeat left center;

border-bottom:1px solid #fff;

padding:3px 0 3px 20px;

}



.boxmeta span.time

{

background:#EDEFF4 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZoPpfDtEZfGfnCFyUIwejThK6ocqZ-ZZuJ7NI0iCMYbdDv0_8CxVTxdw5wZY5hbi3ca-a0OfOlNSEwb0F9zA8CbaRh5ue0mPPKcM_ljx45wn4MQRVVqpd7oB-X_DoUhQ34vQfkePCYGw/s0/clock.png) no-repeat left center;

border-bottom:1px solid #fff;

padding:3px 0 3px 20px;

}







.boxentry

{

padding:10px;

}



.titleposting p

{

width:60%;

margin:0 0 0 185px;

}



.titleposting h2

{

text-shadow:-1px -1px #fafafa;

text-transform:uppercase;

padding:10px 0 0 0;

font:20px/20px verdana,sans serif;



}



.titleposting h2 a:link,.titleposting h2 a:visited

{

color:#1F4189;

padding:10px;



}



.titleposting h2 a:hover{

text-decoration: underline;

}









/*

LEBAR

*/

.post-dalem

{

width:780px;

position:relative;

margin:0 auto;

}



#post

{

width:800px;

margin:0 auto;



}



#main

{

width:100%;

margin:0 auto;

padding:0;

}



/*

HEADER MENU

*/

#header

{

width:100%;

background:#3B5998;

font:bold 14px/12px arial,sans serif;

color:#fff;

height:38px;

margin:0 auto;

}



#header11

{

width:1000px;

margin:0 auto;

}

#header .title

{

float:left;

color:#fff;

padding:7px 18px 10px;

font:bold 30px/18px "lucida grande",tahoma,verdana,arial,sans-serif;

}

#header .title:hover

{ color:#fff;

background:#4B67A1;



}

#header .title a

{ color:#fff;

background:transparent;





}



#header .descriptionwrapper

{

color:#fff;

float:left;

width:100%;

font:8px/6px arial,sans serif;

margin:0;

padding:0;

}



#header .nav li

{

float:left;

list-style:none;

border-left:1px solid #1F4189;

margin:13px 0 0 12px;



}



#header .nav li a

{

color:#D8DFEA;

padding:3px 9px 3px 9px;

}

#header .nav li a:hover

{ color:#fff;

background:#4B67A1;

text-decoration:none;



}



#search {

position: relative;

float:right;

width:255px;

margin: 3px 0 0;

padding: 5px 0 2px 10px;



}



#searchform {

background: transparent;

}



#searchtext {

float:left;

width: 215px;

padding: 5px 4px 3px 6px;

border: none;

background:#fff;

color:#777;

font-size:11px;

-moz-border-radius:2px;

-webkit-border-radius:2px;

border-radius:2px;

}



#searchbutton {

float:right;

width: 28px;

height: 28px;

margin: -20px 0 0 18px;

border: none;

background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTJdyV7dhmuGNHJE-NHV2sMZmYWQO3hcbU3xizjNCt6FTxU5Dfk3rpzGqsPdfNprZ4fJdT9IwTTNP8DkrODsfKmbxJHPHv5ApGSzftkDErzFAVf8hqxq-wjORBcAIqgWFg_i2cA9RMfGk/s0/search-icon.png) no-repeat;

}

/*

SHOW/HIDE KOMENTAR

*/

.comments

{

display:none;

}



.tooggle-koment

{

color:#555;

text-align:center;

background:#3B5998;

font:bold 12px/14px arial,sans serif;

margin:0 auto;

padding:5px;

}



.tooggle-koment a

{

text-decoration:underline;

color:#000;

font:bold 12px/14px arial,sans serif;

}



.tooggle-koment li

{

display:inline;

}

/*

KOMENTAR

*/

.comments

{

width:100%;

overflow:hidden;

background:#E7EBF2;

color:#fff;

font:12px/14px arial,sans serif;

margin:0 auto;

padding:0;

}



#backlinks-container

{

margin:-200px 0 0;

}



.cuma-komen

{

width:800px;

overflow:hidden;

margin:0 auto;

padding:0;

padding-bottom:100px;

}



.cuma-komen h4

{

display:block;

font-family:arial,sans serif;

font-size:200%;

color:#fff;

background:#33508D;

border-bottom:4px double #fff;

border-top:4px double #fff;

margin:40px 0 40px 0;

padding:10px;

-moz-border-radius:3px;

-webkit-border-radius:3px;

border-radius:3px;

}



.cuma-komen a

{

text-align: right;

color:#000;

}



.cuma-komen a:hover

{

color:#fff;

}



.cuma-komen dt

{

position:relative;

margin:20px 0 0 30px;

width:100%;

border-bottom:1px solid #3B5998;

padding:10px;

color:#3B5998;

}

.cuma-komen dt a

{

color:#3B5998;

font:bold 12px arial,sans serif;

}

.comment-body p{

background:#EDEFF4;;

border:1px solid #fff;

padding:20px;

color:#000;

-moz-border-radius:3px;

-webkit-border-radius:3px;

border-radius:3px;

}



#comments-block .avatar-image-container

{

margin:5px 0 0 0;

}

#comments-block .comment-body

{

position:relative;

margin:0 0 0 120px !important;

padding:10px 25px 20px;

}



iframe#comment-editor

{

position:relative;

width:636px;

margin:0 0 0 168px;

}

span.comment-timestamp{float:right;

}

.feed-links

{

display:none;

clear:both;

}



/*

FOOTER 3 KOLOM

*/

#footer-wrapper

{

border-top:20px solid #3B5998;

background:#2C3D63;

font:12px/12px arial,sans serif;

margin:0;

padding:0 0 20px;

}



#footer

{

width:960px;

line-height:1.2;

color:777;

background:transparent;

margin:0 auto;

padding:10px 0 0;

}



#footer a

{

color:#777;

}



#footer a:hover

{

color:#ccc;

}



.footcol

{

float:left;

margin:10px 0;

padding:0 10px 10px;

}



.footcol h2

{

border-bottom:4px double #3B5998;

margin:0 0 20px -20px;

padding:0 0 10px 20px;

color:#fff;

}



.footcol ul,.footcol ol

{

margin:0;

}



.footcol ul li,.footcol ol li

{

list-style:none;

padding:0 0 .2em;

}



#fcol1,#fcol2,#fcol3

{

float:left;

width:300px;

margin-right:0 10px;

}



#fcol1 .widget,#fcol2 .widget,#fcol3 .widget

{

border-right:1px solid #3B5998;

margin:0 0 20px;

padding:20px 15px 20px 20px;

}



/*

FOOTER CREDIT

*/

#credit-wrapper

{

background:#3B5998;

font:10px/10px arial,sans serif;

color:#888;

text-align:center;

border-top:4px double #3B5998;

padding:10px;

}



#credit-wrapper a

{

color:#fff;

}





/*

blog pager

*/

.pager

{

width:800px;

margin:0 auto;

padding:10px 0 0;

}



#blog-pager

{

text-align:center;

clear:both;

text-transform:uppercase;

margin:0;

padding:0;

}



#blog-pager a

{

font:normal bold 74px arial,sans serif;

color:#3B5998;

text-shadow:0 2px 2px rgba(0, 0, 0, 9);

padding:0;

}



#blog-pager-older-link

{

float:left;

height:61px;

margin:0;

padding:0;

}



#blog-pager-newer-link

{

float:right;

height:61px;

margin:0;

padding:0;

}



]]></b:skin>

<b:if cond='data:blog.pageType == &quot;item&quot;'><style>

.title h2

{

display:none;

}



#footer-wrapper

{

border-top:4px solid #3B5998;

}



</style></b:if>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js' type='text/javascript'/>

<script type='text/javascript'>

$(document).ready(function(){

$(&quot;.tombol-komentar&quot;).click(function(){

$(&quot;.comments &quot;).slideToggle(&quot;slow&quot;);

$(this).toggleClass(&quot;active&quot;);

return false;

});

});

</script>

</head>

<body>

<div id='header'>

<b:section class='logoblogazine' id='blog-title' maxwidgets='1' showaddelement='no'>

<b:widget id='Header1' locked='true' title='Percobaan Template (Header)' type='Header'/>

</b:section>



<div id='search'>

<form expr:action='data:blog.homepageUrl + &quot;search/&quot;' id='searchform' method='get'>

<input id='searchtext' name='q' type='text' value='Search'/>

<input id='searchbutton' size='10' type='submit' value=''/>

</form>

</div>





<!-- Pages-based menu added by BTemplates.com -->

<div><div>

<!-- Pages -->

<b:section id='pages' maxwidgets='1' showaddelement='no'>

<b:widget id='PageList9' locked='false' title='Pages - Menu' type='PageList'/>

</b:section>

<!-- /Pages -->

</div></div>



<div class='clear'/>

</div>

<div class='clear'/>

<b:if cond='data:blog.pageType != &quot;item&quot;'>

<div style='margin-top:100px;'/> </b:if>

<b:if cond='data:blog.url == data:blog.homepageUrl'>

<b:if cond='data:blog.pageType == &quot;index&quot;'>

<div id='home-page'>

<div class='name-title'>

<h1>WELCOME</h1>

<p><data:blog.homepageUrl/></p>

</div>

<div class='blogging'>

<h2>Blogs</h2>

<div class='dropshadows blog'>

<h3><a href='/search/label/?max-results=5'><span>Blog</span></a></h3>

<p>lastest news</p>

</div>

<div class='metafizzy omega'>

<h3><a href='#'><span>About</span></a></h3>

<p>about us</p>

</div>

</div>

</div>

</b:if> </b:if>

<div class='clear'/>

<b:section class='main' id='main' showaddelement='no'>

<b:widget id='Blog1' locked='true' title='Posting Blog' type='Blog'/>

</b:section>

<div class='clear'/>

<div id='footer-wrapper'>

<div id='footer'>

<div class='footcol' id='fcol1'>

<b:section class='lowerbar' id='lowerbar1' preferred='yes'>

<b:widget id='HTML2' locked='false' title='Blogger templates' type='HTML'/>

</b:section>

</div>



<div class='footcol' id='fcol2'>

<b:section class='lowerbar' id='lowerbar2' preferred='yes'>

<b:widget id='PopularPosts1' locked='false' title='Popular posts' type='PopularPosts'/>

</b:section>

</div>



<div class='footcol' id='fcol3'>

<b:section class='lowerbar' id='lowerbar3' preferred='yes'>

<b:widget id='HTML1' locked='false' title='Blogroll' type='HTML'/>

</b:section>

</div>

<div class='clear'/>

</div>

</div>

<div id='credit-wrapper'>

<p>Copyright &#169; 2012 <a expr:href='data:blog.homepageUrl' title='All Rights Reserved'> <data:blog.title/></a> / Template by : <a href='http://urangkurai.blogspot.com/' title='All Rights Reserved'>Urangkurai</a></p>

<div class='clear'/>

</div>



</body>

</html>

Minggu, 08 Juli 2012

Belajar CSS:Target






Berhari-hari belajar CSS target akhirnya sekarang bisa, walaupun sedikit-sedikit :p. Sedikit-sedikit lama-lama menjadi bukit :D <-Pepatah Motivasi.





#konten{

width:500px;

margin:auto;

font-size:1.4em;

}

#konten ul, div > div {

margin-bottom:1em;

}

#konten li {

list-style:none;

display:inline;

}

#konten > div {

-webkit-transition: height 2.5s;

-moz-transition: height 2.5s;

-o-transition: height 2.5s;

-webkit-transition:all 900ms linear;

-moz-transition:all 900ms linear;

-o-transition:all 900ms linear;

-ms-transition:all 900ms linear;

transition:all 900ms linear;

display:block;width:0px;margin:0 auto;height:0px;overflow:hidden;position:relative

}

#konten > div:target {

color:#B1B1B1;

text-shadow: 1px 1px 1px #000, 0 0 0 rgba(0, 0, 0, 0.2), 4px 4px 5px #B1B1B1;

display:block;

width:auto;

max-width:100%;

margin:0 auto;

padding:0.5%;

height:auto;

overflow:auto;

border-radius:3px;

-webkit-transition: height 2.5s;

-moz-transition: height 2.5s;

-o-transition: height 2.5s;

-webkit-transition:all 900ms linear;

-moz-transition:all 900ms linear;

-o-transition:all 900ms linear;

-ms-transition:all 900ms linear;

transition:all 900ms linear;

}

#konten > div p:first-line {

font-variant:small-caps;

font-size:1.2em;

}

#konten li{

font-family:verdana;

font-size:10px;

color:#000;

background:#ddd;

padding:5px;

height:auto;

width:50px;

margin-top:5px;

border-radius:20px;

text-align:center;

box-shadow:2px 1px 1px #000;

}

#konten a{

color:#000;

text-decoration:none;

}

#konten li:active{

position:relative;

top:2px;

border: 1px solid hsla(0,0%,0%,.25);

border-radius:10px;

-moz-box-shadow: inset 0 0 10px #000000;

-webkit-box-shadow:inset 0 0 10px #000000;

box-shadow: inset 0 0 10px #000000;}​

#b1{background:#000;}





<div id="konten">

<ul>

<li><a href="#b1">Contoh1</a></li>

<li><a href="#b2">Contoh2</a></li>

<li><a href="#b3">Contoh3</a></li>

<li><a href="#b4">Contoh4</a></li>

</ul>

<div id="b1">

<p>Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1 Contoh1Contoh1</p>
</div>

<div id="b2">

<p>Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2 Contoh2</p>

</div>

<div id="b3">

<p>Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3 Contoh3</p>

</div>

<div id="b4">

<p>Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4 Contoh4</p>

</div>

</div>




Selamat Berkreasi :D




Kamis, 14 Juni 2012

Group Kopizine

Creative Over Creative Over

Kopizine adalah Group Blogazine terbesar di Indonesia (Setau Fahmi!) soalnya bagi fahmi ga ada Group lain yang membahas Custom post selain di Kopizine, Kopizine membahas CSS, HTML, Jquery, dan PHP pokoknya hampir semuanya di bahas. Kopizine memang is the best! Ada yang mau gabung? ini GroupNya Orang-orang Ganteng lho... Kalau mau gabung Cari aja di Facebook :p

Selasa, 17 April 2012

Thank's for Colouring my Life

Thank you for coloring my life, thanks to my friends who always support me, a close friend or friends facebook. once again I thank you, without you my life may not be colored


Senin, 16 April 2012

Cover Majalah!

Tabloid Terbit setiap Minggu, Harga Mulai dari Rp.7000,- P.Jawa Rp.6000,-


Jumat, 13 April 2012

I Love Indonesia




fear

arrogant

unfair

corrupt

traffic jam

disrespect

stuck

poverty

riot

conflict

uncomfort

pessimist

careless

unemployment

bomb terror

dirty

flood

trash

nasty

fool

irregularity

anti social




















































Sabtu, 07 April 2012

CSS3 Button Facebook



CSS3 Facebook Buttons


The easiest way to make people think: "Wow, this app must be as good as Facebook!".





Buttons


To create the default "button" add a class of uibutton to any appropriate element. To create the blue variant include an additional class confirm. To create the green variant include an additional class special.



<a class="uibutton" href="#">Button</a>
<button class="uibutton" type="submit">Button</button>
<input class="uibutton" type="submit" value="Button">


Change picture




Request an invitation






Larger buttons


To create larger buttons inclue an additional class of large.



<a class="uibutton large" href="#">Search</a>

Search


Share


Request an invitation





The CSS


The CSS this Buttonuibutton-group.




/*BUTTON */
.uibutton {
position: relative;
z-index: 1;
overflow: visible;
display: inline-block;
padding: 0.3em 0.6em 0.375em;
border: 1px solid #999;
border-bottom-color: #888;
margin: 0;
text-decoration: none;
text-align: center;
font: bold 11px/normal '
lucida grande', tahoma, verdana, arial, sans-serif;
white-space: nowrap;
cursor: pointer;
/* outline: none; */
color: #333;
background-color: #eee;
background-image: -webkit-gradient
(linear, 0 0, 0 100%, from(#f5f6f6), to(#e4e4e3));
background-image: -moz-linear-gradient(#f5f6f6, #e4e4e3);
background-image: -o-linear-gradient(#f5f6f6, #e4e4e3);
background-image: linear-gradient(#f5f6f6, #e4e4e3);
filter: progid:DXImageTransform.Microsoft.gradient
(startColorStr='#f5f6f6',
EndColorStr='#e4e4e3'); /* for IE 6 - 9 */
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
/* IE hacks */
zoom: 1;
*display: inline;
}
.uibutton:hover,
.uibutton:focus,
.uibutton:active {
border-color: #777 #777 #666;
}
.uibutton:active {
border-color: #aaa;
background: #ddd;
filter: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/* overrides extra padding on button elements in Firefox */
.uibutton::-moz-focus-inner {
padding: 0;
border: 0;
}
/*Icons */
.uibutton.icon:before {
content: "";
position: relative;
top: 1px;
float:left;
width: 10px;
height: 12px;
margin: 0 0.5em 0 0;
background: url(fb-icons.png) 99px 99px no-repeat;
}
.uibutton.edit:before { background-position: 0 0; }
.uibutton.add:before { background-position: -10px 0; }
.uibutton.secure:before { background-position: -20px 0; }
.uibutton.prev:before { background-position: -30px 0; }
.uibutton.next:before { float:right;
margin: 0 -0.25em 0 0.5em; background-position: -40px 0; }
/* BUTTON EXTENSIONS */
/* Large */
.uibutton.large {
font-size:13px;
}
/* Submit, etc */
.uibutton.confirm {
border-color: #29447E #29447E #1A356E;
color: #fff;
background-color: #5B74A8;
background-image: -webkit-gradient
(linear, 0 0, 0 100%, from(#637bad), to(#5872a7));
background-image: -moz-linear-gradient(#637bad, #5872a7);
background-image: -o-linear-gradient(#637bad, #5872a7);
background-image: linear-gradient(#637bad, #5872a7);
filter: progid:DXImageTransform.Microsoft.gradient
(startColorStr='#637bad',
EndColorStr='#5872a7'); /* for IE 6 - 9 */
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
}
.uibutton.confirm:active {
border-color: #29447E;
background: #4F6AA3;
filter: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/* Special */
.uibutton.special {
border-color: #3b6e22 #3b6e22 #2c5115;
color: #fff;
background-color: #69A74E;
background-image: -webkit-gradient
(linear, 0 0, 0 100%, from(#75ae5c), to(#67a54b));
background-image: -moz-linear-gradient
(#75ae5c, #67a54b);
background-image: -o-linear-gradient
(#75ae5c, #67a54b);
background-image: linear-gradient
(#75ae5c, #67a54b);
filter: progid:DXImageTransform.Microsoft.gradient
(startColorStr='#75ae5c',
EndColorStr='#67a54b'); /* for IE 6 - 9 */
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1),
inset 0 1px 0 #98c286;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1),
inset 0 1px 0 #98c286;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1),
inset 0 1px 0 #98c286;
}
.uibutton.special:active {
border-color: #3B6E22;
background: #609946;
filter: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/*BUTTON GROUPS */
.uibutton-group {
display: inline-block;
list-style: none;
padding: 0;
margin: 0;
/* IE hacks */
zoom: 1;
*display: inline;
}
.uibutton + .uibutton,
.uibutton + .uibutton-group,
.uibutton-group + .uibutton,
.uibutton-group + .uibutton-group {
margin-left: 3px;
}
.uibutton-group li {
float: left;
padding: 0;
margin: 0;
}
.uibutton-group .uibutton {
float: left;
margin-left: -1px;
}
.uibutton-group .uibutton:hover,
.uibutton-group .uibutton:focus,
.uibutton-group .uibutton:active {
z-index:2;
}
.uibutton-group > .uibutton:first-child,
.uibutton-group li:first-child .uibutton {
margin-left: 0;
}
/* BUTTON CONTAINER */
.uibutton-toolbar {
padding: 6px;
border-top: 1px solid #ccc;
background: #f2f2f2;
}
.uibutton-toolbar .uibutton,
.uibutton-toolbar .uibutton-group {
vertical-align: bottom;
}






Grouped buttons


To created grouped buttons wrap them in an element, or use a list, given the class uibutton-group.



<div class="uibutton-group">
<a class="uibutton" href="#">Dashboard</a>
<a class="uibutton" href="#">Inbox</a>
<a class="uibutton" href="#">Account</a>
<a class="uibutton" href="#">Logout</a>
</div>
<ul class="uibutton-group">
<li><a class="uibutton" href="#">Dashboard</a></li>
<li><a class="uibutton" href="#">Inbox</a></li>
<li><a class="uibutton" href="#">Account</a></li>
<li><a class="uibutton" href="#">Logout</a></li>
</ul>





Mixed groups


To display a toolbar of buttons and grouped buttons, use a wrapping element given the class uibutton-toolbar.



<div class="uibutton-toolbar">
<a class="uibutton" href="#">Mark as unread</a>
<div class="uibutton-group">
<a class="uibutton" href="#">Report spam</a>
<a class="uibutton" href="#">Delete</a>
</div>
<a class="uibutton" href="#">Unsubscribe</a>
</div>





Buttons with icons


A range of icons can be added (only for links and buttons) by adding a class of icon and any one of the provided icon classes:



<a class="uibutton icon add" href="#">New message</a>

New message




Browser compatibility


Full support: Firefox 3.5+, Google Chrome, Safari 4+, IE 9+, Opera 11.10+.


Note: Some CSS3 enhancements are not supported in older versions of Opera and IE. The use of icons is not supported in IE 6 or IE 7.