This commit is contained in:
2023-12-12 13:45:17 +01:00
parent 773da8d2dd
commit d4364785fc
9 changed files with 432 additions and 216 deletions

View 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;
}

View 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;
}