Learn CSS position in 5 minutes

83 Views
Published
CSS position tutorial example explained

#CSS #position #tutorial

#box1{
border: 5px solid;
height: 300px;
width: 300px;
background-color:skyblue;

position: sticky;
top: 0px;
}
#box2{
border: 5px solid;
height: 100px;
width: 100px;
background-color:tomato;

position: absolute;

top: 100px;
left: 100px;
}
Category
Bro Code
Tags
css position, css position absolute, css absolute relative
Be the first to comment