Create Responsive Tabs using Bootstrap (They should get stacked automatically on smaller screens)

前端 未结 6 871
悲哀的现实
悲哀的现实 2021-01-31 10:41

How can I create responsive tabs which get stacked automatically using bootstrap. The code for my navs is -

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 11:30

        @media (max-width: 480px) {
            .nav-tabs > li {
                float:none;
                margin-bottom: 0px;
            }
            .nav-tabs > li.active > a {
                border: 1px solid #ffffdffffd;
            }
            .nav-tabs > li.active > a:hover {
                border: 1px solid #ffffdffffd;
            }
            .nav-tabs > li  > a {
                border-bottom: 1px solid #ffffdffffd;
                border-left: 1px solid #ffffdffffd;
                border-right: 1px solid #ffffdffffd;
            }
            .nav-tabs > li > a:hover {
                border-color: #ffffdffffd;
            }
        }
    

    This one is more simple and good-looking.

提交回复
热议问题