Answer the question
In order to leave comments, you need to log in
Why might CSS media queries not work under certain permissions?
Good afternoon, tell me, the question is the following plan, a site running joomla, the template that I use involves the use of CSS media queries (initially, some permissions were registered in the template file). what is the actual problem. i added two new permissions
@media only screen and (min-width: 1360px) {...}
@media only screen and (max-width: 1920px) {...}
@media only screen and (max-width: 1280px) {...}
Answer the question
In order to leave comments, you need to log in
because your requests are not written that way, if you want to do it for specific permissions, you need to write like this
@media (min-width: 992px) and (max-width:1170px){
}
@media (min-width: 768px) and (max-width:991px){
}
@media (min-width: 480px) and (max-width:767px){
}
and for what reason can overlap each other.
@media only screen and (max-width: 1280px) {
.block {
font-size: 14px;
text-align: center;
color: grey;
}
}
@media only screen and (max-width: 992px) {
.block {
font-size: 12px;
}
}
@media (min-width: 992px) and (max-width:1280px)
{
.block {
font-size: 14px;
text-align: center;
color: grey;
}
}
@media (min-width: 768px) and (max-width:991px)
{
.block {
font-size: 12px;
text-align: center;
color: grey;
}
}
it's not just the stupidity of media (min-width:) ....css = cascading table... and, where you saw in nature - two opposite streams in one cascade at the same time... sadomasochism is a thrill for someone....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question