Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: How to set the width of carousel

Amark Wong free asked 5 years ago


I wanna to expand the width of my carousel to fulfil the window

But don't know how to do it and keep it responsive, it looks like to be set as 660px


Anna Morawska staff answered 5 years ago


Hi there

The carousel component is designed to occupy the full available width - so it's dimensions are dependent on the dimensions of the direct parent.

If you use our example snippets from the documentation, just remove wrapping MDBContainer component. Otherwise, just make sure, that the parent component have a width set to 100vw

Best, Ania



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.8.3
  • Device: iMac
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No