0
I’m having a problem where I’m making a responsive display where the desktop is getting over @MEDIA SCREEN and on mobile is not getting the responsive.
.portfolio-modal .close-modal {
position: absolute;
right: 25px;
width: 180px;
top: 5px;
height: 75px;
background-color: transparent;
cursor: pointer;
}
@media (max-width: 479px){
.portfolio-modal .close-modal {
width: 50px;
}
}
On the last 6 lines you are overwriting, media all includes midia screen, I suggest you read this MDN content talking about Media Query https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/CSS_Media_queries, Also take care of your formatting, after opening media you need to use {}
– Rafael Kendrik
is that I’m finding it strange, because only this class is not getting the responsive the rest is.
– kaiquemix
This code will not work anyway, it is missing a } closing the first media and {} opening and closing the second...
– Rafael Kendrik
was closed just forgot to put here at the end. I updated how the code is.
– kaiquemix