modal-box sizing #551
-
hello, the tailwind width utilities don't seem to work when used on the modal-box div , i would like to have a wider div any help ? for example |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I faced this exact problem today. By playing around in the dev tools I found out that the label which is inside the main label should have 2 classes Example of last modal in DaisyUi: Modal that closes when clicked outside
Edit: Fixed formatting of code |
Beta Was this translation helpful? Give feedback.
-
Yes, as @SavarJ mentioned, you need to define a max width value. .modal-box {
width: 100%;
}
@media (min-width: 640px){
.modal-box {
max-width: 32rem;
}
} So you can make it bigger than |
Beta Was this translation helpful? Give feedback.
-
thank you for your responses |
Beta Was this translation helpful? Give feedback.
-
Hey, I want to change the max-width from 32rem to 80rem.
|
Beta Was this translation helpful? Give feedback.
-
Hi, This is the example code provided on the daisyui website:
|
Beta Was this translation helpful? Give feedback.
I faced this exact problem today. By playing around in the dev tools I found out that the label which is inside the main label should have 2 classes
max-w-none
and whatever width you want likew-full
Example of last modal in DaisyUi: Modal that closes when clicked outside