Eren• 210
@for-dev9
Posted
- add modal div --> <div id="modal" class="modal"></div>
- set modal stylesheet --> display: none; position: fixed; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5);
- update your menu stylesheet z-index to 2
- Call JS function to show modal div -- > document.getElementById('modal').style.display = 'block';
Marked as helpful
0