Dev Helpers
← Back

Keep an invisible spacer in the layout

Keep an invisible spacer in the layout with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo .tile:nth-child(2) {
    visibility: hidden;
  }
</style>
<div class="demo">
  <span class="tile">One</span><span class="tile">Two</span
  ><span class="tile">Three</span>
</div>