I'd like to know how to use CSS to put a DIV without position:fixed
on half of another that has overflow
.
I would like it to look like this:
ThesamplecodeI'musingis:
.div1 {
width: 100px;
height: 200px;
background: #ccc;
overflow-x: auto;
}
.div2 {
width: 50px;
height: 100px;
background: #000;
margin-left: 70px;
}
<div class="div1">
<div class="div2"></div>
</div>