A Pen by Joel Alejandro Villarreal Bertoldi on CodePen.
Created
September 4, 2020 23:49
-
-
Save joelalejandro/560feaf77962ef2ef8dda5597d1875eb to your computer and use it in GitHub Desktop.
Composición de clases 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
| <div id="forma1"> | |
| <img class="figura-redonda" src="https://placehold.it/100x100"> | |
| <img class="borde-rojo" src="https://placehold.it/100x100"> | |
| <img class="borde-grueso borde-rojo" src="https://placehold.it/100x100"> | |
| <img class="borde-rojo figura-redonda borde-grueso" src="https://placehold.it/100x100"> | |
| <img class="borde-rojo figura-redonda" src="https://placehold.it/100x100"> | |
| </div> | |
| <div id="forma2"> | |
| <img class="imagen1" src="https://placehold.it/100x100"> | |
| <img class="imagen2" src="https://placehold.it/100x100"> | |
| <img class="imagen3" src="https://placehold.it/100x100"> | |
| <img class="imagen4" src="https://placehold.it/100x100"> | |
| <img style="width: 100px; height: 100px" class="imagen5" src="https://placehold.it/100x100"> | |
| </div> |
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
| #forma1 .figura-redonda { | |
| border-radius: 50%; | |
| } | |
| #forma1 .borde-rojo { | |
| border-style: solid; | |
| border-color: red; | |
| } | |
| #forma1 .borde-grueso { | |
| border-width: 10px; | |
| } | |
| #forma2 .imagen1 { | |
| border-radius: 50%; | |
| } | |
| #forma2 .imagen2 { | |
| border: 1px solid red; | |
| } | |
| #forma2 .imagen3 { | |
| border: 10px solid red; | |
| } | |
| #forma2 .imagen4 { | |
| border: 10px solid red; | |
| border-radius: 50%; | |
| } | |
| #forma2 .imagen5 { | |
| border: 1px solid red; | |
| border-radius: 50%; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment