how to give a border to bootstrap tab contents

后端 未结 9 2028
长发绾君心
长发绾君心 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 13:13

    I would modify Kisuka's answer to the following:

    CSS

    .tab-pane {
    
        border-left: 1px solid #ffffd;
        border-right: 1px solid #ffffd;
        border-bottom: 1px solid #ffffd;
        border-radius: 0px 0px 5px 5px;
        padding: 10px;
    }
    
    .nav-tabs {
        margin-bottom: 0;
    }
    

    SCSS for Bootstrap 4

    .tab-pane {
        border-left: 1px solid $nav-tabs-border-color;
        border-right: 1px solid $nav-tabs-border-color;
        border-bottom: 1px solid $nav-tabs-border-color;
        border-radius: 0px 0px $nav-tabs-border-radius $nav-tabs-border-radius;
        padding: $spacer;
    }
    
    .nav-tabs {
        margin-bottom: 0;
    }
    

提交回复
热议问题