Dia 14
This commit is contained in:
32
Practicas/Practicas CSS/Practica 14/css/estilo.css
Normal file
32
Practicas/Practicas CSS/Practica 14/css/estilo.css
Normal file
@@ -0,0 +1,32 @@
|
||||
@charset "UTF-8";
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.item {
|
||||
width:100px;
|
||||
height:100px;
|
||||
background-color: orange;
|
||||
color:white;
|
||||
}
|
||||
|
||||
#div2{
|
||||
position: relative;
|
||||
top:40px;
|
||||
left: 150px;
|
||||
}
|
||||
|
||||
#div4{
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
#div5{
|
||||
position: sticky;
|
||||
}
|
||||
58
Practicas/Practicas CSS/Practica 14/css/estilo14b.css
Normal file
58
Practicas/Practicas CSS/Practica 14/css/estilo14b.css
Normal file
@@ -0,0 +1,58 @@
|
||||
@charset "UTF-8";
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
.item {
|
||||
position: absolute;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#div1 {
|
||||
background-color: orange;
|
||||
width: 200px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#div2 {
|
||||
background-color: blue;
|
||||
top: 50px;
|
||||
left: 590px;
|
||||
width: 50px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
#div3 {
|
||||
background-color: red;
|
||||
top: 0px;
|
||||
left: 300px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
#div4 {
|
||||
background-color: black;
|
||||
top: 0px;
|
||||
left: 550px;
|
||||
width: 230px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div5 {
|
||||
background-color: green;
|
||||
top: 160px;
|
||||
left: 300px;
|
||||
width: 110px;
|
||||
height: 140px;
|
||||
}
|
||||
|
||||
#div6 {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user