×
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 9; /* Sit on top */
padding-top: 0px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 50%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
/* The Close Button */
.closes {
color: #aaaaaa;
position: absolute;
font-size: 28px;
font-weight: bold;
top: 247px;
right: 359px;
}
.closes:hover,
.closes:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to create a modal/pop up window on product page in supply theme | 23 | 355 | July 10, 2024 | |
| Dawn theme - pop up modal margin | 9 | 15 | May 10, 2024 | |
| Add a simple html css modal in theme.liquid | 0 | 19 | June 20, 2022 | |
| Make pop up modal full screen | 2 | 76 | October 22, 2024 | |
| Dawn Theme quick add Choose Option open a transparent modal that hard to read | 1 | 117 | January 9, 2023 |