Skip to content

Instantly share code, notes, and snippets.

@jkeck
Created February 14, 2020 21:04
Show Gist options
  • Save jkeck/4c5dca1d80d9d0b38f76478c03d0e348 to your computer and use it in GitHub Desktop.
Save jkeck/4c5dca1d80d9d0b38f76478c03d0e348 to your computer and use it in GitHub Desktop.
HTML snippet that will show you which bootstrap breakpoint the browser is currently at
<div>
<span>Current breakpoint:</span>
<b class="d-sm-none">XS</b>
<b class="d-none d-sm-inline d-md-none">SM</b>
<b class="d-none d-md-inline d-lg-none">MD</b>
<b class="d-none d-lg-inline d-xl-none">LG</b>
<b class="d-none d-xl-inline">XL</b>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment