Decrease left/right margin/padding

I want to have my gridView expand as much as necessary on the width of the page so that a single record can be viewed nicely on one row of the page - kind of like a spreadsheet view.

I understand Yii2 uses bootstrap for that CSS styling, but is there an easy way of expanding the left/right margins of the page, or do I have to edit the CSS directly ? If so, can anyone point me to the specifics before I dive into the code inspector.


Yii2 has no dependency on Bootstrap. It’s just an extension that you can remove safely if you aren’t comfortable with it.

Or, if you want to keep Bootstrap and just want to use a fluid layout, search for "container" class in the HTML and replace it with "container-fluid"