how to up the background to up

i want the header cover the background imag
No description
21 Replies
croganm
croganm17mo ago
What does your HTML look like?
fof
fofOP17mo ago
No description
croganm
croganm17mo ago
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 HTML
fof
fofOP17mo ago
No description
fof
fofOP17mo ago
still there
fof
fofOP17mo ago
No description
croganm
croganm17mo ago
What's still there
fof
fofOP17mo ago
the image is not cover the page
snxxwyy
snxxwyy17mo ago
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.
fof
fofOP17mo ago
i see this tutorial and i did the same steps but not useful
No description
croganm
croganm17mo ago
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
snxxwyy
snxxwyy17mo ago
oh i didn't know that was practiced, learnt something new there 😄
croganm
croganm17mo ago
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
snxxwyy
snxxwyy17mo ago
that's what i originally thought haha, i was like "there's more!?" 😂
croganm
croganm17mo ago
What does the background image look like as well
fof
fofOP17mo ago
yeeeeeeeees it works
croganm
croganm17mo ago
Lol
snxxwyy
snxxwyy17mo ago
awesome 👍
fof
fofOP17mo ago
i just refresh thank u guys
croganm
croganm17mo ago
No problem haha
snxxwyy
snxxwyy17mo ago
no worries
Want results from more Discord servers?
Add your server