Login with:


Or:


Not a member? Sign Up

Forgot Password?

Signup with:


Or:


Already have an account? Log in

MDB Free 4.3.x: "Hidden" and "Visible" Classes No Longer Work

MDB SupportMDB Free 4.3.x: "Hidden" and "Visible" Classes No Longer Work
surface2air asked 3 weeks ago

Hi MDB Support,

I have updated to the most current free version of MDB, and while there’s plenty to be excited about, it also seems like I have lost the toggle states of hiding and showing content with the Bootstrap “hidden” and “visible” classes, e.g., “hidden-lg visible-sm”.

For example, here’s a sample page where theses classes are used:

Screen Capture

The page content is reproduced to offer different layouts for larger and smaller displays depending upon the viewport size and breakpoint. The top of this sample page is designed to serve the page content to larger displays while hiding the bottom half of the page with the same content. Similarly, the top half of the page would be hidden from smartphones and smaller displays.

My DIV containers include these classes as follows:

<!--Main layout-->
        <div class="container visible-lg visible-md hidden-sm hidden-xs">
            <div class="row justify-content-center">
              <div class="col-5">
                <h6 class="small-lead">Project</h6>
                <p>
                <b>West Edge Sculpture Invitational</b>
                </p>
                <p>
                  Sponsored and supported an event which allowed local sculptors the opportunity to display their work on Downtown Seattle streets during the summer months.
                </p>
              </div>
              <div class="col-3">
                <img src="../images/projects/west-edge-sculpture-invitational.jpg" class="img-fluid" alt="" />
              </div>
            </div>
        </div>

        <div class="container hidden-lg hidden-md visible-sm visible-xs">
            <div class="row d-flex justify-content-center hidden-lg hidden-md visible-sm visible-xs">
              <div class="col-8">
                <h6 class="small-lead">Project</h6>
                <p>
                <b>West Edge Sculpture Invitational</b>
                </p>
                <p>
                  Sponsored and supported an event which allowed local sculptors the opportunity to display their work on Downtown Seattle streets during the summer months.
                </p>
                <img src="../images/projects/west-edge-sculpture-invitational.jpg" class="img-fluid" alt="" />
              </div>
            </div>
        </div>
        <!--/.Main layout-->

View this page here:
http://gridinteractive.com/KVW/portfolio/port_west-edge-sculpture-invitational.htm

And test in Quirktools > Screenfly across viewport and screen resolution:

http://quirktools.com/screenfly/#u=http%3A//gridinteractive.com/KVW/portfolio/port_west-edge-sculpture-invitational.htm&w=480&h=800&a=24&s=1

Please let me know what I’m missing.

Thanks!

Eric
Seattle, WA

2 Answers
Marta Szymanska answered 3 weeks ago

Hi Eric,

Have you read this topic in our documentation? You can find an answer to your question here: https://mdbootstrap.com/css/helpers/, below the title “Responsive utilities”.

Best,
Marta

contactpetergray answered 6 days ago

Hey Eric,
and thanks for the link Marta. I was having a similar problem as you Eric. But clicked through to “Display” which took me to this page:  ( https://mdbootstrap.com/utilities/bootstrap-display-property/ )

I was able to use the d-none and d-sm-block together as a substitute that worked for my situation.

Hope that helps.

Magdalena Obalska replied 4 days ago

@contactpetergray, thank you for your solution.
Eric, let us know if your problem is solved or not.