how to up the background to up
i want the header cover the background imag
21 Replies
What does your HTML look like?
In your css you put
.body
It should just be body
You're trying to target the body
element, not a class called body
You can also remove the image tag now in your HTMLstill there
What's still there
the image is not cover the page
i think they said the want the header to cover the background image with the background image covering the whole hero section. If it's that i'd recommend a div with a
height: 100vh
with a background-image
property and then the header content in there as it will overlap.i see this tutorial and i did the same steps but not useful
That's correct but you can use the body similar to a div. They should wrap it into a div but they can use the body for it too
oh i didn't know that was practiced, learnt something new there 😄
Haha yeah, I mean it should be in a div though! Background image on body is bad practice 😂
Did you refresh the page or something? I mean I don't see how it woild remain the same
that's what i originally thought haha, i was like "there's more!?" 😂
What does the background image look like as well
yeeeeeeeees it works
Lol
awesome 👍
i just refresh thank u guys
No problem haha
no worries