Back in the day, I used to rely on <br clear=all>
at the end of a div, without specifying a height value in CSS, just to control its height.
These divs would expand and contract based on the content within.
Is there a more elegant approach to make all divs' heights in sync with the tallest one, without resorting to <br clear=all>
? Considering that the divs adjust their heights according to the content they contain.
Here's an instance of the code:
<div class="welcomeText">
<div class="houseTiles2">
<h1>TITLE<br><br></h1>
<p><br>Body copy 1</p><br clear="all">
</div>
<div class="houseTiles">
<h1 class="tileTitle">Title 2</h1><br>
<p class="tileDesc">Text text text text text text text text</p>
<br clear="all">
</div>
<div class="houseTiles">
<h1 class="tileTitle">Title 3</h1><br>
<p class="tileDesc">Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</p><br clear="all">
</div><br clear="all">
</div>