Grid width causing Bootstrap column issues when large columns specified

1 Answer 258 Views
Grid Styling / Themes
Ricky
Top achievements
Rank 1
Iron
Ricky asked on 09 Dec 2022, 04:25 PM | edited on 09 Dec 2022, 04:26 PM

Hi, I am using React Bootstrap, and want a 3 column layout. The third column should contain the grid. This works fine and all looks in order if the column widths are within a certain size, but when large the grid displays underneath the first 2 columns.

There must be some CSS issue but it's only happening with the grid. How do I keep the grid within the third column, regardless of the grids column sizes?

I've created a demo/example below, please assist! I've set all columns to 500px to demonstrate the problem.

https://stackblitz.com/edit/react-us4svr-iauvwn?file=app%2Fmain.jsx

Thanks.

1 Answer, 1 is accepted

Sort by
0
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
answered on 09 Dec 2022, 07:21 PM

Try the following - https://stackblitz.com/edit/react-us4svr-cdjn4m?file=app%2Fmain.jsx

<Row style={{ flexWrap: 'unset' }}>

Ricky
Top achievements
Rank 1
Iron
commented on 12 Dec 2022, 08:47 AM

Hi, thank you. That fixed it. I had actually tried this a few days ago but in a more complicated set up and it didn't work so must have had it at the wrong level. Now I know it works I've used it correctly in my project.

Thanks again.

Tags
Grid Styling / Themes
Asked by
Ricky
Top achievements
Rank 1
Iron
Answers by
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
Share this question
or