Bootstrap CSS Breakpoint Debugger (CSS snippet for development) #41946
coliff
started this conversation in
Show & Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working on Bootstrap projects I often find myself wanting to quickly see the current Bootstrap CSS breakpoint (XS, SM, MD, LG, XL or XXL).
I created a simple CSS snippet that shows the current Bootstrap CSS breakpoint in the browser’s viewport.
It appears at all times in the bottom left corner of the viewport and as it’s small, partially transparent and blurred it doesn’t distract from the main content. Works in both light and dark mode too.
You can view a demo at: https://code.christianoliff.com/bootstrap-css-breakpoint-debugger/
(observe the indicator at bottom left, you can resize the iframe (there is a drag handle in bottom right).
If do use it development, just make sure you don't push it to your production site accidentally. :-)
Beta Was this translation helpful? Give feedback.
All reactions