blob: e741d0635d35b055b72793fc5ce64b631840aeb6 [file] [log] [blame]
<!DOCTYPE html>
<style>
body {
height: 200%;
}
div {
width: 400px;
height: 25px;
background-color: silver;
text-align: center;
margin: 8px 0;
}
#float {
float: left;
width: 25px;
height: 25px;
background-color: rgba(0, 0, 255, 0.5);
}
#absolute {
position: absolute;
width: 25px;
height: 25px;
background-color: rgba(0, 0, 255, 0.5);
}
</style>
<div>&#x200b;<span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span>Lorem ipsum<span id="absolute"></span> dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span><span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span><span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="float"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span>Lorem ipsum<span id="absolute"></span> dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span><span id="float"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="float"></span><span id="absolute"></span>Lorem ipsum dolor sit amet</div>
<div>&#x200b;<span id="absolute"></span><span id="float"></span>Lorem ipsum dolor sit amet</div>