I am trying to make a modal with a body that will scroll when the content becomes too large. However, I want the modal to be responsive to the screen size. When I set the max-height to 40% it has no effect. However, if I set the max-height to 400px it works as expected, but is not responsive. I am sure I am just missing something simple, but I can’t seem to get it to work.
Here is an example
Doesn’t work:
.modal-body { max-height:40%; overflow-y: auto; }
Works:
.modal-body { max-height:400px; overflow-y: auto; }
Related Posts:
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- CSS – Initial HTML Margin Issue On WordPress Site
- Change class names dynamically added to html elements by wordpress
- Bootstrap News: Image Modifciation
- How am I supposed to use index.html?
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- CSS Background Opacity [duplicate]
- Customize Bootstrap checkboxes
- Making a
- How to align a to the middle (horizontally/width) of the page [duplicate]
- Is there a color code for transparent in HTML?
- multiple classes on single element html
- How to insert spaces/tabs in text using HTML/CSS
- How to get these two divs side-by-side?
- Does bootstrap have builtin padding and margin classes?
- Is there a color code for transparent in HTML?
- Bootstrap Dropdown menu is not working
- What is sr-only in Bootstrap 3?
- How to set up fixed width for
? - “Stray start tag footer” in html validator?
- How to change btn color in Bootstrap
- Make div scrollable
- How to make the HTML link activated by clicking on the
- ?
- How to change text transparency in HTML/CSS?
- How does the data-toggle attribute work? (What’s its API?)
- Bootstrap 4 images thumbnail classes
- HTML Width Percentage
- Bootstrap Dropdown menu is not working
- Text-decoration: none not working
- Bootstrap Dropdown menu is not working
- How to set up fixed width for
? - right align an image using CSS HTML
- css to make bootstrap navbar transparent
- Why are my CSS3 media queries not working on mobile devices?
- Bootstrap 4, How do I center-align a button?
- Responsive Bootstrap Jumbotron Background Image
- How to completely remove borders from HTML table
- How do I right align div elements?
- Changing the width of Bootstrap popover
- Why “Inline-block” doesn’t work properly in this CSS?
- How to fix a footer overlapping content?
- How to center vertically and horizontally a div using Bootstrap?
- How to word wrap text in HTML?
- How would you make two
s overlap?- What’s the HTML to have a horizontal space between two objects?
- How to center HTML5 Videos?
- HTML/CSS float: left; is not working properly
- height style property doesn’t work in div elements
- How to get current screen width in CSS?
- CSS “margin: 0 auto” not centering
- bootstrap 3 navbar collapse button not working
- margin-right is not working with my HTML. How can I center my content?
- how to center an inline div using css?
- How to center content in a Bootstrap column?
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How to give spacing between buttons using bootstrap
- how to center form using bootstrap 4
- How can I override Bootstrap CSS styles?
- How to center HTML5 Videos?
- Flushing footer to bottom of the page, twitter bootstrap
- How to change the background-color of jumbrotron?
- How can I insert vertical blank space into an html document?
- vertical divider between two columns in bootstrap
- HTML span align center not working?
- bootstrap 4 row height
- vertical-align with Bootstrap 3
- Bootstrap change carousel height
- How to place Text and an Image next to each other in HTML?
- Twitter Bootstrap – add top space between rows
- Table fixed header and scrollable body
- How to have an anim gif on a link and play it on hover and reset
- Align
elements side by side- how to do a line break in Bootstrap 3.3.7
- How can I make Bootstrap columns all the same height?
- How to increase height of textarea using bootstrap rows and columns
- Bootstrap Columns Not Working
- Align text to the bottom of a div
- How to make a
- display in a horizontal row
- Bootstrap 3 Glyphicons CDN
- CSS – display: none; not working
- Failed to decode downloaded font
- Delete white space between divs
- Center HTML Input Text Field Placeholder
- Bootstrap align navbar items to the right
- How can I change the Bootstrap default font family using font from Google?
- creating a chevron in CSS
- Display Images Inline via CSS
- Text wrapping around a div
- CSS/HTML: Create a glowing border around an Input Field
- Why CSS3 Animation is not working?
- Need to make a clickable
button- Why is my Bootstrap code not working?
- Set line height in Html
to make the html looks like a office word when
has different font sizes
- img-responsive in Bootstrap does not work
- Set textarea width to 100% in bootstrap modal
- Creating Accordion Table with Bootstrap
- How to make fixed header table inside scrollable div?
- In a bootstrap responsive page how to center a div
- Responsive Canvas in Bootstrap column?