Hi, I’m fairly new to CSS and I can’t figure out my mistake here.
I’m trying to apply a CSS class to a text block in page builder. I’ve created the class and added it successfully, but when I do, the class applies to “p” & “h2” sidewide (making nearly all my content white on white.)
I’m wondering if maybe it’s the “!important;” I used? but if I don’t use it, it doesn’t apply to the element I’m trying to style.
Any help diagnosing my problem would be appreciated, thank you.
Here’s my CSS:
.test h2, p{
color: #ffffff!important;
text-align:center;
}
.test h2 {
font-size: 30px;
}
.test p {
font-size: 16px;
}