How can you make an automatic block height

<div class="recInner" style="width: 100%; height: auto;"> <embed src="blablabla.swf" type="application/x-shockwave-flash" width="950" height="100%" quality="high" wmode="opaque" allowscriptaccess="always" alt="bla bla bla" style="width: 100%; height: auto;" /> </div> 

    1 answer 1

    Specify in vh (percentage of the height of the viewport):

     style="... height: 100vh;" 

     <div class="recInner" style="width: 100%; height: 100vh;"> <embed src="blablabla.swf" type="application/x-shockwave-flash" quality="high" wmode="opaque" allowscriptaccess="always" alt="bla bla bla" style="width: 100%; height: 100vh;" /> </div> 

    • No, it is necessary that the block wrapper adapts to the height of the content, and so it will take the whole screen - Mikhail Umarov