Button in Orange mit runden Ecken, Schatten und Verlauf nur mit CSS3:
.button {
display: inline-block;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font: 14px/100% Arial, Helvetica, sans-serif;
padding: .5em 2em .55em;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
border-top-left-radius: 15px 50%;
border-top-right-radius: 15px 50%;
border-bottom-left-radius: 15px 50%;
border-bottom-right-radius: 15px 50%;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
box-shadow: 0 1px 2px rgba(0,0,0,.2);
margin-right: 4px;
}
.button:hover {
text-decoration: none;
}
.button:active {
position: relative;
top: 1px;
}
.orange {
color: #fef4e9;
border: solid 1px #da7c0c;
background: #f78d1d;
background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
background: -moz-linear-gradient(top, #faa51a, #f47a20);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#faa51a', endColorstr='#f47a20');
}
.orange:hover {
background: #f47c20;
background: -webkit-gradient(linear, left top, left bottom, from(#f88e11), to(#f06015));
background: -moz-linear-gradient(top, #f88e11, #f06015);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f88e11', endColorstr='#f06015');
}
.orange:active {
color: #fcd3a5;
background: -webkit-gradient(linear, left top, left bottom, from(#f47a20), to(#faa51a));
background: -moz-linear-gradient(top, #f47a20, #faa51a);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f47a20', endColorstr='#faa51a');
}
Posts mit dem Label css3 werden angezeigt. Alle Posts anzeigen
Posts mit dem Label css3 werden angezeigt. Alle Posts anzeigen
Montag, 12. September 2011
Donnerstag, 18. August 2011
Image Border
Beispiele:
Double Border with different inside border color:
img {
padding:1px;
border:1px solid #021a40;
background-color:#ff0;
}
Drop shadow:
/* This adds the border */
padding:8px;
border:solid;
border-color: #dddddd #aaaaaa #aaaaaa #dddddd;
border-width: 1px 2px 2px 1px;
background-color:white;
Double Border with different inside border color:
img {
padding:1px;
border:1px solid #021a40;
background-color:#ff0;
}
Drop shadow:
/* This adds the border */
padding:8px;
border:solid;
border-color: #dddddd #aaaaaa #aaaaaa #dddddd;
border-width: 1px 2px 2px 1px;
background-color:white;
Samstag, 30. Juli 2011
Wichtigste CSS3 Kommandos
- border-radius: runde Ecken
z.B.:
- border-radius: 20px;
- border-top-left-radius: 5px 5px;
- border-top-right-radius: 15px 50%;
- border-bottom-left-radius: 15px 50%;
- border-bottom-right-radius: 5px 5px;
- opacity: Transparenz
z.B.:
- opacity: 0.8;
- text-shadow: Text mit Schatten
z.B.:
- text-shadow: 2px 2px 2px #999999;
- box-shadow: Schatten
z.B.:
- box-shadow: 0 0 5px #888;
- box-shadow: 10px 10px 5px #888;
- column: Textspalten
z.B.:
- column-count: 3;
- column-gap: 20px;
Sonntag, 24. Juli 2011
Tools
Die ultimative Toolsammlung:
Webdesign:
Wordpress Plugins:
Webdesign:
Wordpress Plugins:
- WP Live CSS Editor
- TAC (Theme Authenticity Checker): "free wordpress theme" checker
Abonnieren
Posts (Atom)