<div class="bg1"> </div>
<div class="bgr11"> </div>
.bg1 {
width: 200px;
height: 750px;
background: green;
margin-left: 10px;
margin-top: 10px;
}
.bgr11 {
width: 700px;
height: 150px;
background: red;
position: fixed;
top: 0;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.