Recently, I tried to add a background image as a backdrop for my Header but ran into some issues. I was successful using a background color, but not with the background image itself.
h2 {
background-color: red;
font-family: "Comic Sans MS", cursive, sans-serif;
font-size: 1.5em ;
text-transform: uppercase;
}
When I attempted to use a background image, it didn't work as expected. Here is the code snippet:
h2 {
background-image: url("gear.png");
font-family: "Comic Sans MS", cursive, sans-serif;
font-size: 1.5em ;
text-transform: uppercase;
}
If anyone has a solution or guidance to offer, I would greatly appreciate it. Thank you in advance for your help!