I'm a bit confused. I'm tying to adapt the boostrap 3 grid to 16 column.
I'm changing these vars in my variable.less:
@grid-columns: 16;
@gridColumnWidth: 32px;
@gridGutterWidth: 30px
But still when I inspect my col-lg-12
class, it has a 100% width.
Add this grid generator as *.less file
and add less code
or using default
It will generate 16-column bootstrap grid with 30px gutter
It's possible to achieve more than 12 columns by nesting a grid within a column. I have experimented with this and came up with this sample code.
The number of columns is hard coded into the .less file.
@grid-columns
is only used to calculate the widths.Bootstrap source code: https://github.com/twbs/bootstrap/blob/master/less/grid.less#L74
Apparently changing the number of columns will possibly be added to version 3.1. https://github.com/twbs/bootstrap/issues/9436#issuecomment-22849238