Home > Net >  how to perform the flexbox in bootstrap-vue
how to perform the flexbox in bootstrap-vue

Time:06-16

I am using the flex box in vue.js but the project cannot perform the functionality. the code is

<div >
          <div ><p>Resturants</p></div>
          <div ><b-icon icon="three-dots-vertical"></b-icon></div>
        </div>
        

and the output is the output image is

can you elaborate how to solve this task.

CodePudding user response:

Can't comment, so i'll try to create an answer. As other have suggested, it's strange that your box looks like this, without any css applied on. What might be, is that the box is taking css from other components. In every vue component, write the tag as follows

<style scoped>

this will apply the css only to that certain component. Regarding your question, you could do something like this

<div >
  <div >Content1</div>
  <div >Content2</div>
</div>

And then add your css. Hope it helped

  • Related