There are the following markup and styles - an example
<div class="parentBlock"> <div class="upperBlock">Content of upper block</div> <div class="clear"></div> <div class="childBlock"> Content of child </div> </div> .parentBlock, .childBlock, .upperBlock { border: 1px solid red; } .upperBlock { height: 200px; width: 200px; float: right; } .childBlock { height: 300px; position: relative; top: -100px; } In the parent there is a void below.
Is it possible to remove emptiness with the help of css ? Those. Expected Result
Hard to set the height the parent is not an option, because the user can change the width of the browser window