Professional Documents
Culture Documents
EJERCICIO2
EJERCICIO2
.num{
color:white;
font-size:40px;
}
1.- Generar
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
Justify-content:center;
}
.num{
color:white;
font-size:40px;
Align-self:center;
}
Resumen de pasos:
2.- Generar
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
Justify-content:space-between;
}
.num{
color:white;
font-size:40px;
2.2.- Alineo el 2 verticalmente
}
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:column;
Justify-content:space-between;
}
.num{
color:white;
font-size:40px;
}
.cara div:nth-child(2){
align-self:end;
Resumen de pasos:
2.-Alinear el 2 verticalmente
3.- Generar
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:row-reverse;
Justify-content:space-between;
}
.num{
color:white;
font-size:40px;
}
<div class="cara">
<div class="num">1</div>
<div class="num">2</div>
<div class="num">3</div>
.cara{
</div>
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:row-reverse;
Justify-content:space-between;
}
Luego alineo el 2 y 3 verticalmente
.num{
color:white;
font-size:40px;
}
.cara div:nth-child(2), {
align-self:center;
}
.cara div:nth-child(3){
}
4.-
.cara{
4.1-
background: grey;
height: 120px;
width: 120px;
<div class="cara"> margin:10px;
<div class="d1"> display:flex;
<div class="num">1</div> display:flex;
<div class="num">2</div> }
</div>
<div class="d2"> .num{
<div class="num">3</div> color:white;
<div class="num">4</div> font-size:30px;
</div> }
</div>
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
display:flex;
flex-direction:column;
}
.num{
color:white;
font-size:30px;
}
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:column;
}
.num{
color:white;
font-size:40px;
}
.cara div:nth-child(1){
display:flex;
}
.cara div:nth-child(2){
display:flex;
}
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:column;
}
.num{
color:white;
font-size:40px;
}
.cara div:nth-child(1){
display:flex;
justify-content:space-between;
}
.cara div:nth-child(2){
justify-content:space-between;
}
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:column;
justify-content:space-between;
}
.num{
color:white;
font-size:40px;
}
5.1.- .cara{
<div class="cara"> background: grey;
<div class="d1"> height: 120px;
<div class="num">1</div> width: 120px;
<div class="num">2</div> margin:10px;
</div> display:flex;
<div class="num">3</div> }
<div class="d2">
<div class="num">5</div> color:white;
</div> font-size:40px;
</div> }
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
flex-direction:column; .cara{
} background: grey;
height: 120px;
.num{ width: 120px;
color:white; margin:10px;
font-size:40px; display:flex;
} flex-direction:column;
}
.num{
color:white;
font-size:40px;
}
.cara div:nth-child(1){
display:flex;
}
.cara{
.cara div:nth-child(3){
background: grey;
display:flex;
height: 120px;
width: 120px;
}
margin:10px;
display:flex;
flex-direction:column;
}
.num{
color:white;
font-size:35px;
}
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
Justify-content:space-between;
}
.cara{
background: grey;
height: 120px;
width: 120px;
margin:10px;
display:flex;
Justify-content:space-between;
}
.num{
color:white;
font-size:30px;
}