React-Bootstrap causing margins on left and right side

后端 未结 6 2446
逝去的感伤
逝去的感伤 2021-02-19 23:33

I\'m using React-Bootstrap in my React app. It is causing margin on the left and right side. I\'m using the following code:

import React, { Component } from \"re         


        
6条回答
  •  时光说笑
    2021-02-20 00:26

    The answer above is overkill. This really isn't that complicated. According to the official React Bootstrap documentation on Grid the fluid property can be applied. Here's the description for fluid:

    Turn any fixed-width grid layout into a full-width layout by this property. Adds container-fluid class.

    Here's what I did and it works perfectly:

    
    

提交回复
热议问题