Dev Helpers
← Back

Calendar starting offset

Calendar starting offset with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
  .demo span:first-child {
    grid-column-start: 4;
  }
</style>
<div class="demo"><span>1</span><span>2</span><span>3</span><span>4</span></div>