h1 {
font-size: 50px;
color: white;
font-family: "Abril Fatface", serif;
font-weight: 400;
font-style: normal;
text-align: center;
padding-top: 20px;
}
p {
font-size: 20px;
color: black;
font-family: "Julius Sans One", sans-serif;
font-weight: 100;
font-style: normal;
text-align: center;
padding-top: 20px;
}
<div class="container">
<div class="text-box">
<h1>Magic 8 Ball</h1>
<p>Harness the mystical powers of the Magic 8 Ball to uncover the answers you seek.Ask The Almighty 8ball! </p>
I am trying to add colour to the p
tag, colour works for h1
but not p
for some reason.
3
Answers
try using
color: black !important;
for the p tag
Look the below code.
Change the color value from black to another color so you see if it applies or not.
You have added white color to the h1 tag that’s why you are not able to see the font.