Following media query is functioning for font-size
property of an element but not working for color
property of the same element:
.CSS:
.text-cyan {
color: #33CCCC;
}
em {
color: coral;
font-size: 0.8em
}
@media (max-width: 600px) {
em {
color: coral;
font-size: 0.5em
}
}
HTML:
<em class="text-cyan">Start Date: Thursday, September 20, 2018</em>
font-size successfully changes from 0.8em
to 0.5em
when window size is less than or equal to 600px
but not changing color property of the element from #33CCCC
to coral
.
Can anyone please help me fix this.
Thanks