Can we use the ampersand operator
instead of important
?
Below is my sample CSS. Is there any way to use the &&
operator instead of using !important
to override the basic CSS?
Sample snippet
@media only screen and (max-width: 600px) {
body {
background-color: lightblue !important;
}
}
Can we replace it with ampersand operator
like below in CSS?
@media only screen and (max-width: 600px) {
body {
background-color: lightblue &&;
}
}
or it is just !important in css to $i