Answer the question
In order to leave comments, you need to log in
How to set the style of an object in CSS, which will be applied when a media query is executed or if the parent object has a defined. class?
Friends, hello!
Here is the style that will be applied to the object if the window width is between 700 and 1000 px.
@media (max-width: 1000px) and (min-width: 700px) {
.selector1 {
color: #000;
}
}
.example_class .selector1 {
color: #000;
}
@media (max-width: 1000px) and (min-width: 700px) {
.selector1 {
color: #000;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question