Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I give the col-md-1.5 in bootstrap?

I want to adjust the columns in Twitter Boοtstrap.

I know in bootstrap there are 12 columns grid. Is there any way to manipulate the grids to have 1.5 3.5 3.5 3.5 instead of 3 3 3 3?

like image 624
Sandhya Gor Avatar asked May 04 '15 09:05

Sandhya Gor


1 Answers

You cloud also simply override the width of the Column...

<div class="col-md-1" style="width: 12.499999995%"></div> 

Since col-md-1 is of width 8.33333333%; simply multiply 8.33333333 * 1.5 and set it as your width.

in bootstrap 4, you will have to override flex and max-width property too:

<div class="col-md-1" style="width: 12.499999995%;     flex: 0 0 12.499%;max-width: 12.499%;"></div> 
like image 114
Balraj Singh Bains Avatar answered Sep 28 '22 12:09

Balraj Singh Bains