Exploring HTML Markup,
<div class="blurredBackground"></div>
<div class="content">
Hello! This content is always changing dynamically.<br>
If the height of the second div increases,
I need the first div's height to increase accordingly.
</div>
I am looking for a solution where the first div's height will adjust automatically when the second div's height changes due to dynamic content.
Currently, I have successfully stacked one div on top of another,
.content {
width: 70%;
height: auto;
border:1px solid;
position: absolute;
z-index:10;
background-color: white;
}
.blurredBackground {
width:70%;
height:70%;
background-color: red;
z-index:0;
border:1px solid;
position:absolute;
-webkit-filter: blur(2px);
}
Is there a CSS solution to this issue? I have experimented with this approach > http://jsfiddle.net/hsinghbisht/nLj5dqay/2/
Your assistance is greatly appreciated!
Thank you in advance.