row > * css taking precedence instead of col-* css after upgrading to bootstrap 5 from 4. #41064
Replies: 2 comments
-
Add flex behavior explicitly to your columns: .row > * { This is a known change in Bootstrap 5's grid system to enhance flexibility. Check the Bootstrap 5 migration guide for more details. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not Bootstrap problem. Bootstrap works. Your CSS is changed from the default Bootstrap CSS and it changes specificity which makes it a different CSS. Your case
So
Bootstrap
So
SolutionDo not change Bootstrap's CSS. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After upgrading to bootstrap 5 from 4, I am facing an issue where col-* css is overridden by row > * css. Please check the screenshot attached.
Why is it over-ridding the css for col-md-4 and taking width 100%.
It was not the case with Bootstrap 4. What cna be the issue or solution for this?
Beta Was this translation helpful? Give feedback.
All reactions