Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alter max-width #272

Open
jephthah-java opened this issue Apr 30, 2020 · 2 comments
Open

alter max-width #272

jephthah-java opened this issue Apr 30, 2020 · 2 comments

Comments

@jephthah-java
Copy link

the default max-width is 500px; How can i alter it.

@jephthah-java
Copy link
Author

jephthah-java commented Apr 30, 2020

Thanks got it !!!.

Used in css

max-width: val;
width:val;

to overwrite .modal default max-width and width values

@mslinn
Copy link

mslinn commented Feb 6, 2021

Here is a quick and dirty way to make a modal dialog that can expand to fill 90% of the available window:

<div id="asdf" class="modal" style="height: initial; max-height: 90%; max-width: 90%; width: initial;">
  <h2>Hello, world!</h2>
  <p>Content is here</p>
  <a href="#" rel="modal:close" class="btn">Close</a>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants