Topic: How can I extend the width of class="Container"?

.jodadev. pro asked 6 years ago

Hi, I'm trying to extend a little bit the width of the class="container" since I think the default version is kinda small. I tried with css like this: .container{ width: 1800px; } but didn't work. It lets me decrease the width but not increase it which is what i'm trying to do. Any idea on how to do this? thanks!

Ollie Vincent pro answered 6 years ago

Hi, Have you tried
.container{ max-width:1800px !important;}

.jodadev. pro commented 6 years ago

It almost works! Now the issue I have is that it doesn't work the same way on my two containers. I have two containers, one in the navbar and one after <main>. The one on the navbar extends a little more than the one in the main. Any clue on who to make them increase proportionally and have the same exact width? Thanks!

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No