Dev Helpers
← Back

Float a label alongside copy

Float a label alongside copy 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;
    margin-right: 0.75rem;
  }
</style>
<div class="demo">
  <span class="tile">Tip</span>Text flows beside the floated label and resumes
  across the full width below it.
</div>