How to apply col-*-offset in decimal with Bootstrap?

Is there a way to apply an offset in decimals. In my case I need an offset of 3.5. I don't think col-xs-offset-3.5 works.

1 answer

  • answered 2018-07-11 07:27 David Liang

    You can define a column of 5 and center it horizontally. That should give you an offset of 3.5 before and after.

    <div class="container">
      <div class="row">
        <div class="col-5 mx-auto">

    enter image description here