Demo of <DIV> Div Position

This is with class = my_div1 with position: relative , this will push down other div element
This is with class = my_div2 with position: absolute , this will not push down other div element






HTML

<div id=d1 class=my_div1>This is with class = my_div1 with position: relative , this will  push down other div element</div>
<div id=d2 class=my_div2>This is with class = my_div2 with position: absolute , this will not push down other div element</div>
<br><br>

<button id=b1 > Click me show div with class=my_div1</button><button id=b2 > Click me show div with class=my_div2</button>

Style

<style>
.my_div1 { 
 position: relative;
}
.my_div2 { 
 position: absolute;
}
</style>