I am using the flex box in vue.js
but the project cannot perform the functionality. the code is
<div class="d-flex">
<div class="p-2"><p>Resturants</p></div>
<div class="ml-auto p-2"><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.
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 class="row row-flex">
<div class="col-6">Content1</div>
<div class="col-6">Content2</div>
</div>
And then add your css. Hope it helped