Home:ALL Converter>How to set tab title sticky on top with bootstrap-vue

How to set tab title sticky on top with bootstrap-vue

Ask Time:2021-01-08T12:38:41         Author:Aaron Andrews

Json Formatter

I am currently using bootstrap-vue to build a page with several tabs. This is the code in a nutshell

<div id="app">
  <template>
    <div>
      <b-tabs content-class="mt-3 ml-3">
        <b-tab title="Settings">
          <div class="col-md-4">
            <h2>Hello</h2>
          </div>
        <b-tab>
        <b-tab title="Question">
          <div class="col-md-4">
            <h2>World</h2>
          </div>
        <b-tab>
      </b-tabs>
    </div>
  </template>
</div>

How do I made the tabs title sticky in place, so whenever I scroll inside the tab, the tabs will always be on top? Thank you kindly

Author:Aaron Andrews,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/65623541/how-to-set-tab-title-sticky-on-top-with-bootstrap-vue
yy