I'm currently struggling with a minor issue on my website where the body text appears in white on desktop, which is fine. However, on smaller devices, the white text blends into the background and becomes unreadable. Is there a way to change the text color for mobile versions using CSS or HTML?
See how it displays on Smaller Screens (Phones, Tablets, etc)
Previous edits from Stackoverflow (which were unsuccessful):
CSS:
@media only screen and (max-width: 600px) {
.mob1 {
color: #ffffff;
}
}
@media only screen and (min-width: 600px) {
.mob1 {
color: #000000;
}
}
HTML:
<p style="color: aliceblue;" class="custom-article wow fadeInDown" data-wow-delay=".2s"><span class="mob1">Changed Text</span></p>
- I attempted adding "mob1" to the p class, but it did not have the desired effect.