Dev Helpers
← Back

Clear both floats before the next paragraph

Clear both floats before the next paragraph with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo .tile {
    float: left;
  }
  .demo p {
    clear: both;
  }
</style>
<div class="demo">
  <span class="tile">Floated label</span>
  <p>Starts below the float.</p>
</div>