Last active
May 2, 2016 17:36
-
-
Save juanlopezdev/94eafbf80eda6d05e8f4 to your computer and use it in GitHub Desktop.
Triangulos en CSS / Triangles en CSS
This file contains hidden or 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
| /* Triangulo CSS (pico superior) */ | |
| .triangulo_sup { | |
| width: 0; | |
| height: 0; | |
| border-left: 50px solid transparent; | |
| border-right: 50px solid transparent; | |
| border-bottom: 100px solid #000; | |
| } | |
| /* Triangulo CSS (pico inferior) */ | |
| .triangulo_inf { | |
| width: 0; | |
| height: 0; | |
| border-left: 50px solid transparent; | |
| border-right: 50px solid transparent; | |
| border-top: 100px solid #000; | |
| } | |
| /* Triangulo CSS (pico izquierda) */ | |
| .triangulo_izq { | |
| width: 0; | |
| height: 0; | |
| border-top: 50px solid transparent; | |
| border-right: 100px solid #000; | |
| border-bottom: 50px solid transparent; | |
| } | |
| /* Triangle (Pico derecho)*/ | |
| triangulo_der { | |
| width: 0; | |
| height: 0; | |
| border-top: 50px solid transparent; | |
| border-left: 100px solid #000; | |
| border-bottom: 50px solid transparent; | |
| } | |
| /* Triangulo CSS (pico superior izquierdo) */ | |
| .triangulo_top_left { | |
| width: 0; | |
| height: 0; | |
| border-top: 100px solid #000; | |
| border-right: 100px solid transparent; | |
| } | |
| /* Triangulo CSS (pico superior derecho) */ | |
| .triangulo_top_right { | |
| width: 0; | |
| height: 0; | |
| border-top: 100px solid #000; | |
| border-left: 100px solid transparent; | |
| } | |
| /* Triangulo CSS (pico inferior izquierdo) */ | |
| .triangulo_bottom_left { | |
| width: 0; | |
| height: 0; | |
| border-bottom: 100px solid #000; | |
| border-right: 100px solid transparent; | |
| } | |
| /* Triangulo CSS (pico inferior derecho) */ | |
| .triangulo_bottom_right { | |
| width: 0; | |
| height: 0; | |
| border-bottom: 100px solid #000; | |
| border-left: 100px solid transparent; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment