-1

How to display 3 lines inline side by side in bootstrap? I have a serious problem in the height and the width! If I use css only it displays. However when I want to use bootstrap I am getting stuck.

Here the code using CSS with only one line! The same process for the remaining two lines:

<div style="display:inline-block ;height:2px; width:100px;border-radius:10px; background-color: blue;"

How to do it using bootstrap? Should I use a parent class to get the height and the width?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Zakaria Belassal
  • 101
  • 2
  • 10

2 Answers2

0

You was thinking of something like this?

<div class="col-lg-3 text-center bg-secondary" style="height:200px;width:auto"></div>

            
  • yeahh something like this !! but i want three divs side by side I dont know how to do it with bootstrap so I have to duplicate the same thing 3 times ! – Zakaria Belassal May 05 '22 at 11:37
0
<div class="container">
    <div class="row">
        <div class="col-md-4">
            <div class="p-5 bg-danger"></div>
            <p class="text-center">Lorem ipsum dolor sit</p>
        </div>
        <div class="col-md-4">
            <div class="p-5 bg-danger"></div>
            <p class="text-center">Lorem ipsum dolor sit</p>
        </div>
        <div class="col-md-4">
            <div class="p-5 bg-danger"></div>
            <p class="text-center">Lorem ipsum dolor sit</p>
        </div>
    </div>
</div>
Pinal Sukhadiya
  • 241
  • 1
  • 5