I encountered a peculiar issue with Bootstrap 3. When I resize my browser width to half the screen, there is a slight 1px threshold where both "hidden-xs" and "hidden-sm" elements become visible simultaneously. Is there a way to fix this so that only one of these elements is displayed at a time?
To test this problem, I visited Bootstrap's website example at in the helper classes section under showing and hiding content.
You can view Bootstrap's website example on a half-width screen here.
When the screen width is slightly reduced from half-width, the following elements are shown: ✔ Hidden on x-small (Green) Medium (Greyed out) ✔ Hidden on x-small and small (Green) ✔ Hidden on x-small and medium (Green) ✔ Hidden on x-small and large (Green)
<div class='col-xs-12'><div class='hidden-xs'>This content should be hidden on mobile only, but visible on everything else</div><div class='hidden-sm hidden-md hidden-lg'>This content should be hidden on everything apart from xs devices</div></div>
But when the browser window is resized to half the screen's width, both the "hidden-xs" element and the "hidden-sm, hidden-md, hidden-lg" elements remain visible until the width is adjusted again. It seems like there is a gap in the required width to determine an element as xs or sm.