Bootstrap 4: responsive sidebar menu to top navbar

后端 未结 3 1542
面向向阳花
面向向阳花 2020-12-12 13:49

So I\'ve been searching and searching for guidance in this with no avail.

Basically, I just want to have a sidebar, but when the screen gets small, aka smartphones s

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 14:44

    If this isn't a good solution for any reason, please let me know. It worked fine for me.

    What I did is to hide the Sidebar and then make appear the navbar with breakpoints

    @media screen and (max-width: 771px) {
        #fixed-sidebar {
            display: none;
        }
        #navbar-superior {
            display: block !important;
        }
    }
    

提交回复
热议问题