I have two div
containing font awesome quotation marks.
<div class="fas fa-quote-left fa-quote"></div>
<div class="fas fa-quote-right fa-quote"></div>
I want to hide these two div
when the screen is smaller than 768px.
@media (max-width: 767.98px) {
.fa-quote {
display: none;
}
}
The above didn't work.
But when I added div
in front of .fa-quote
, it worked!
Like this:
@media (max-width: 767.98px) {
div .fa-quote {
display: none;
}
}
I want to know what's going on here. What makes the difference?
Thanks in advance.