Is it considered poor practice to utilize <div>
elements as a means of creating space between other elements? If so, what are the reasons behind this?
For instance:
<div class="panel">
<!-- Content -->
</div>
<div class="spacer"></div>
<div class="panel">
<!-- Content -->
</div>
Below is the corresponding CSS:
div.spacer
{
font-size: 0;
height: 10px;
line-height: 0;
}