<p>Shoelace doesn’t ship with a grid system because <ahref="https://rachelandrew.co.uk/archives/2017/07/01/you-do-not-need-a-css-grid-based-grid-system/">you don’t need one</a>. You should use the <ahref="https://gridbyexample.com/">CSS Grid Layout</a> instead.</p>
<p>Now we just need a couple styles to turn the nav and content elements into columns. This will make the nav <code>12rem</code> wide and the content <code>100% - 12rem</code> so it fills the rest of the space.</p>
<pre><codeclass="lang-css">#wrap {
display: grid;
grid-template-columns: 12rem calc(100% - 12rem);
}
</code></pre>
<p>You can use media queries to make grids responsive. This is how we make the nav appear on top of the content on smaller screens.</p>
<p>Support for CSS Grid Layouts is <ahref="http://caniuse.com/css-grid">decent</a>, but if you have an obligation to support Internet Explorer or Edge < 16, consider using the <ahref="https://evgenyrodionov.github.io/flexboxgrid2/">Flexbox Grid</a> in combination with Shoelace.</p>
<p>You can use it as-is or include the source files and customize it with CSS variables in your build process.</p>
<aclass="github-button"href="https://github.com/claviska/shoelace-css/fork"data-size="large"aria-label="Fork claviska/shoelace-css on GitHub">Fork</a>
<aclass="github-button"href="https://github.com/claviska/shoelace-css/releases"data-icon="octicon-cloud-download"data-size="large"aria-label="Download claviska/shoelace-css on GitHub">Download</a>
<aclass="github-button"href="https://github.com/claviska/shoelace-css/issues"data-icon="octicon-issue-opened"data-size="large"aria-label="Issue claviska/shoelace-css on GitHub">Report a Bug</a>
<aclass="github-button"href="https://github.com/claviska/shoelace-css"data-icon="octicon-star"data-size="large"data-show-count="true"aria-label="Star claviska/shoelace-css on GitHub">Star</a>