In the following simple CSS code, I’m trying to straight the bottom of h1 with the bottom of p (h1 shouldn’t be under p like in my code).
<div id="sqrs" style="width:200px; height:200px; border:1px solid BLACK;">
<p style="width:100px; height:100px; background-color:BLUE; float:right;">blue</p>
<h1 style="background-color:YELLOW; margin-top:100px;">yellow</h1>
</div>
P style cannot be changed and I don’t know the height of h1 (since it can be h2, h3…)
I’ve tried margin-top:100% (instead margin-top:100px) but this is not the solution as well.
Thanks,