question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to increase Modal width or change color

See original GitHub issue

i need to change Modal width to ‘650px’

  • components: Modal
  • reactstrap version #5.0.0-alpha.3
  • react version #16.0.0
  • bootstrap version #4.0.0-beta.2

What is happening?

I added my inline style in Modal or ModalBody style={{width:'600px'}} or style={{background-color:transparent}} but this is not working. then I checked in browser, div tag with .modal-content css class is middle in Modal and ModalBody. so, where should I write this css style and className

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
gergely-nagycommented, Nov 7, 2017

Duplicate of #595

10reactions
AustrisCcommented, Mar 7, 2018

Is it possible to override @media (min-width: 576px) { .modal-dialog { max-width: 500px; } } in order to set max-width to a higher value?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modal width (increase) - bootstrap 4 - Stack Overflow
To use these we will replace the modal-lg class. Both the default width and modal-lg use css max-width to control the modal's width,...
Read more >
How to Change the Default Width of Bootstrap Modal Box
Answer: Set width for .modal-dialog element. By default, Bootstrap modal are available in four different sizes — small, default, large and extra-large.
Read more >
How to change Bootstrap Modal Width and Height - 3 Examples
In order to increase or decrease the modal window height and width properties of Bootstrap, you need to get the modal related classes...
Read more >
How to configure modal width in Bootstrap? - GeeksforGeeks
In this article, we will focus on adjusting the width/height of the modal box. ... Bootstrap has pre-defined classes for changing modal dimension ......
Read more >
Bootstrap Modal Sizing - free examples & tutorial
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found