Tasti personalizzati? Funzionali? Esteticamente validi? Ecco una soluzione rapida per poter creare il nostro tasto con i css:

http://css3buttongenerator.com/

 

Un esempio:

.btn {
background: #fcc10f;
background-image: -webkit-linear-gradient(top, #fcc10f, #fadc7a);
background-image: -moz-linear-gradient(top, #fcc10f, #fadc7a);
background-image: -ms-linear-gradient(top, #fcc10f, #fadc7a);
background-image: -o-linear-gradient(top, #fcc10f, #fadc7a);
background-image: linear-gradient(to bottom, #fcc10f, #fadc7a);
-webkit-border-radius: 28;
-moz-border-radius: 28;
border-radius: 28px;
text-shadow: 3px 2px 8px #666666;
font-family: Arial;
color: #ffffff;
font-size: 22px;
padding: 5px 20px 10px 20px;
text-decoration: none;
}.btn:hover {
background: #fadc7a;
background-image: -webkit-linear-gradient(top, #fadc7a, #fcc10f);
background-image: -moz-linear-gradient(top, #fadc7a, #fcc10f);
background-image: -ms-linear-gradient(top, #fadc7a, #fcc10f);
background-image: -o-linear-gradient(top, #fadc7a, #fcc10f);
background-image: linear-gradient(to bottom, #fadc7a, #fcc10f);
text-decoration: none;
}

risultato?

tasto

Beh ora potete divertirvi a creare i vostri tasti in css.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato.