Is there a way to apply the class d-flex
to my element only on small screens? I couldn't find a solution in the documentation (https://getbootstrap.com/docs/4.3/utilities/flex/). I tried using d-sm-flex
, but it seems to work for small screens and up.
Can someone help me figure out how to make flex work just for the sm
breakpoint? Or do I need to create this functionality myself?
This is the code I'm currently using:
<ul class="nav d-sm-flex">
<li class="flex-fill nav__item"><a href="#" title="Home">Home</a></li>
<li class="flex-fill nav__item"><a href="#" title="About">About</a></li>
<li class="flex-fill nav__item"><a href="#" title="Services">Services</a></li>
<li class="flex-fill nav__item"><a href="#" title="Blog">Blog</a></li>
<li class="flex-fill nav__item"><a href="#" title="Contact">Contact</a></li>
</ul>