how to give a border to bootstrap tab contents

后端 未结 9 2032
长发绾君心
长发绾君心 2021-01-30 12:17

I\'m using bootstrap tabs and it works perfectly. I\'m trying to figure out if there is a way to use bootstrap to give a border to the contents of the tabs that is connected to

9条回答
  •  离开以前
    2021-01-30 12:53

    Being more DRY then @goat solution, you could also reuse the panel css like:

    .tab-content.panel
    {
        border-top: none; 
        border-top-left-radius: 0px; 
        border-top-right-radius: 0px;
    }
    
    
    
    ...

    tab-content panel panel-default and tab-pane panel-body. Then you don't need to redefine the border and padding. Just remove the top border and top radius.

提交回复
热议问题