I am trying to align two divs in a container div. But the right div (smaller in size) sticks to the top right of the container div. Instead I want both of them to align inline with each other .
Here is the code what I have been trying:
<div class = "row">
<div style = "float: left"> <h1> HUGE CONTENT </h1> </div>
<div style = "float: right"> <p> small text </p> </div>
<div style= "clear: both;"> </div>
</div>
The content of the div's is dynamically loaded. So can't use the width property! In that way this is different from the exisiting questions I have found.
Any help is appreciated. Thanks.