Can two divs be added one after another without using the position property in CSS?
Here is an example of HTML code:
<div class="content1">
Lorem Ipsum is simply dummy text
</div>
<div class="content2">
Lorem Ipsum is simply dummy text
</div>
And the corresponding CSS code:
.content1{
width: 100%;
height: 400px;
border: 1px solid black;
}
.content2{
width: 100%;
height: 300px;
border: 1px solid red;
}