I currently have this piece of codes.
@media screen and (min-width: 768px) and (max-width: 990px) {
.community-info-box {
width: 100%;
margin-right: 0;
float: none;
... : ...
}
}
@media screen and (max-width: 630px) {
.community-info-box {
width: 100%;
margin-right: 0;
float: none;
... : ...
}
}
What I'm trying to do is something like.
@media screen and (min-width: 768px) and (max-width: 990px),
@media screen and (max-width: 630px) {
.community-info-box {
width: 100%;
margin-right: 0;
float: none;
... : ...
}
}
therefore, I do not need to write the same properties and values again, since they are the same. Any ideas?
I also searched for “setting more than two breakpoints inside a media query”, but there is no luck.
source
share