Is there a way to make the left div's content flow around the right one without overlapping?
.class1 {
background-color: #678e6f;
width: 80%;
float: left;
}
.class2 {
background-color: #00ff34;
width: 300px;
float: right;
}
<div class="class">
<div class="class1">
<img/><img/><img/>
</div>
<div class="class2">
<li>text</li>
</div>
</div>
When the divs collide, I want them to align perfectly on the right side.
I am looking for a solution that will allow all elements to be transferred smoothly like in this example:
Can this be achieved?