Take a look at this Plunk for reference: https://plnkr.co/edit/se1lRiXuQ4JtvqQcEtOA
I'm attempting to design a mobile-friendly modal. I require the CSS to maintain the following layout without changing the HTML ordering:
- Keep the Header fixed at the top when scrolling
- Ensure the Buttons stay fixed under the header (always visible)
- Make the Item list scrollable
Since element heights can vary, I'd like a generic solution that automatically adjusts heights.
I'm stuck on this problem, any suggestions?
HTML
<div class="modal">
<div class="modal-title">
Header
</div>
<div class="modal-content">
<div class="button-group">
<div class="button selected">Button One</div>
<div class="button">Button Two</div>
</div>
<div class="list"></div>
(remaining HTML code here...)
CSS
(CSS code here...)