<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

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.