New Jan 17, 2026

container and container-fluid not spanning full width [closed]

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View container and container-fluid not spanning full width [closed] on stackoverflow.com

I used className="container" in React to wrap my elements, and I expected it to take the full width of the page with just a small padding on the sides. However, I noticed that the content is not spanning the entire width as I expected. Is there a reason why the container is not full width? Could this be due to Bootstrap or the way React handles the DOM?

I also tried using className="container-fluid", but it didn't fix the issue.

Scroll to top