how to up the background to up

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