question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bootstrap .hidden-* classes are simply not present in the distribution?

See original GitHub issue

Hello,

I have downloaded the latest 4.0.0-beta distribution of Bootstrap and was been wondering for quite some time why .hidden-* classes wouldn’t work… I then grepped them across the distribution:

$ ack "\.hidden*"
js/bootstrap.js
649:      if (!document.hidden) {

That’s all of the output. It does find all other classes though, it just seems that responsive utilities didn’t make it.

Can anyone confirm?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SuperPat45commented, Aug 30, 2017

To replace hidden-sm-down you need to use d-none d-md-block

I find this new method very regrettable because to replace hidden-*-down element, what is nevertheless the most common, it requires to know the default display of the element which is much less practical than before …

Moreover the name is confusing because d-*-none has the impression that it hides an element only for a single breakpoint and not the upper also breakpoints.

0reactions
tucnakcommented, Aug 28, 2017

Alright, it seems I indeed confused alpha and beta docs. Now looking through latest B1 docs, there’s no mention of .hidden-*. @myorangeca thank you, very informative!

Sorry for noise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display property - Bootstrap
Display utility classes that apply to all breakpoints, from xs to xl , have no ... To hide elements simply use the .d-none...
Read more >
twitter bootstrap .hidden-lg less not working - Stack Overflow
I decided to change div class="promo-pod" to div class="span4 hidden-lg" and it hid the div, but when it is just div class="promo-pod", all...
Read more >
Understanding Bootstrap 5 Layout - Designmodo
Building Bootstrap layouts have always been a complex task since the beginning. With Bootstrap 5, there are few additional classes.
Read more >
Using the Bootstrap 4 Grid | BOOTSTRAP 4 TUTORIAL
The grid is one of the core assets of Bootstrap 4 - time to take a closer look and understand how you may...
Read more >
Bootstrap - Quick Guide - Tutorialspoint
Media Queries in Bootstrap allow you to move, show and hide content based on the ... To use, simply add the appropriate class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found