Coding⏱️ 2 min read📅 2026-05-31

How to Fix: bootstrap 4 responsive utilities visible / hidden xs sm lg not working

Bootstrap 4 responsive utilities hidden / visible classes not working.

Quick Answer: Use .hidden-*-up and .hidden-*-down classes together as .hidden-*-up.hidden-*-down to achieve the desired effect.

To fix the issue with the hidden/visible classes in Bootstrap 4, you need to use the correct combination of classes. The .hidden-*-up and .hidden-*-down classes should be used together as .hidden-*-up.hidden-*-down, but they do not work when used separately.

🔍 Why This Happens

  • When using .hidden-*-up or .hidden-*-down classes alone, they do not trigger the visibility change because they are meant to be used in conjunction with each other.

🛠️ Step-by-Step Verified Fixes

Method 1: Adding Display: Block Property

  1. Step 1: Add display: block to the element you want to hide or show.

Method 2: Using .hidden-*-up.hidden-*-down Classes Correctly

  1. Step 1: Use the correct combination of classes, such as col hidden-xs-down or row hidden-sm-up, to hide elements on smaller screens.

💡 Conclusion

By following these steps, you should be able to fix the issue with the hidden/visible classes in Bootstrap 4.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions