Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get half columns in Bootstrap 3?

I need a 2.5 column and a 9.5 column in Bootstrap 3. Can somebody please give me a solution? The only answer i've found is a partition of 3 columns. i need 2 half-columns.

like image 717
user3701008 Avatar asked Oct 19 '22 05:10

user3701008


1 Answers

If you are using the bootstrap sass files you can do it this way:

.col-md-half {
   @extend .col-md-1;
   width: percentage((0.5 / $grid-columns));
}

This is a similar to Ardee Aram's solution but makes use of the bootstrap $grid-columns variable instead.

like image 103
isxpjm Avatar answered Nov 01 '22 09:11

isxpjm