Here is a snippet of CSS code that I am currently working with:
* {
margin: 0;
padding: 0;
}
body {
overflow-x: hidden;
margin: 0;
padding: 0;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
overflow-y: scroll;
background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
position: relative;
top: 55px;
border-radius: 4px;
padding: 24px;
margin-left: auto;
margin-right: auto;
width: 70%;
max-width: 1000px;
border: none;
background-color: #fff;
height: max-content;
margin-bottom: 50px;
}
.my-slides {
width: 100%;
}
.my-slides img {
width: 100%;
}
.closed {
position: fixed;
top: 30px;
right: 25px;
font-size: 48px;
font-weight: bold;
transition: 0.3s ease;
}
/* Media queries */
@media (min-width: 576px) and (max-width: 767px) {
.modal-content {
margin-left: 10px;
}
}
@media (min-width: 0px) and (max-width: 575px) {
.modal-content {
margin-left: 10px;
}
}
While experimenting with the margin-bottom property in Chrome and Firefox, I noticed a discrepancy. In Chrome, setting it to 50px works fine, but in Firefox it does not. Increasing it to 100px fixes the issue in both browsers, but the spacing is uneven. Chrome takes up more space compared to Firefox.
If you would like to see the project I am working on, you can visit the following link: