Created
February 21, 2012 18:48
-
-
Save juanbrujo/1878092 to your computer and use it in GitHub Desktop.
Boton y Flecha con CSS3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Boton y Flecha con CSS3 | |
*/ | |
html {min-height:100%;} | |
body {background:#ccc; background: linear-gradient(90deg, #ccc, #999); font-family:Tahoma, sans-serif; text-shadow: #000 0 0 5px} | |
.boton { | |
display: block; | |
margin: 150px auto; | |
width: 190px; | |
line-height: 35px; | |
text-align: center; | |
padding: 10px; | |
background: #666; | |
text-transform: uppercase; | |
font-weight: normal; | |
font-size: 18px; | |
text-decoration: none; | |
color: #fff; | |
position: relative; | |
} | |
.boton:before { | |
content: ""; | |
position: absolute; | |
width: 20px; | |
height: 20px; | |
background: #666; | |
top: -10px; | |
left: 10px; | |
transform: rotateZ(45deg); | |
} | |
.boton:hover, | |
.boton:hover:before { | |
background: #333; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" class="boton">Texto del boton</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment