Open AndrewMartinezMT opened 6 years ago
Maybe try adding another period to your image reference, like so:
<div.main-container {
background-image: image(../images/wildfire.jpg);
}
</style>
that's what happened with mine, and it worked when I added the extra period. Good luck! I'm not good at coding, so I can't make promises it will work.
To start, remove your starting <
so that it says
<style>
div.main-containter {
and see what happens there.
I am having trouble putting a background image on one page of my website for the CSS assignment. I put the "style" element in the header and wrote:<div.main-container { background-image: image(./images/wildfire.jpg); }
I have the image in my images folder but it does not seem to be showing up. Does anyone have any suggestions on how the background image could be displayed on its own in the background?