#d0 {
border: 1px solid purple;
position: static;
width: 250px;
}
#d1 {
border: 2px solid green;
background: white;
position: fixed;
width: 300px;
top: 40px;
left: 140px;
}
position:
static |
fixed |
relative |
absolute;
#d2 {
border: 1px solid red;
position: static;
width: 400px;
}
#d3 {
border: 1px solid blue;
position: static;
width: 500px;
}
#d4 {
border: 1px solid yellow;
position: static;
width: 600px;
height: 1800px;
}