I'm currently working on a project using jQuery Mobile (JQM) and jquery.mobile-1.4.5. My goal is to create a responsive side menu panel with a fixed header that works well on both mobile and tablet devices.
For the design, I want the panel width to be 100% in mobile view and 30% in tablet view. To achieve this, I have used the following @media
code:
@media all and (max-width: 35em) {
.overlay{
width: 100%
}
}
@media all and (min-width: 45em) {
.overlay{
width: 30%
}
}
However, after running this code, I encountered an issue where the fixed header overlaps with the menu.
In the tablet view:
Here is how it looks: https://i.sstatic.net/Ah10s.jpg
In the mobile view:
And here is the mobile view: https://i.sstatic.net/KP0jQ.jpg
If you have any suggestions on how to solve this issue or if there is a better solution to achieve the desired layout, please let me know. This is the UI I'm aiming for:
In the mobile view:
Desired mobile view: https://i.sstatic.net/E1tU2.jpg
In the tablet view:
Desired tablet view: https://i.sstatic.net/JtcEf.jpg
NOTE: Please do not confuse the back button and close button.
Thank you and best regards.