How do i put an image as a backround in html
Coder100
So to do this, in your style.css
add:
body { background: url(img.png); }
But make sure img.png
is an actual image (replace img.png
with the image of your choice).
Also, to make sure the image is full-size, read this:
html { background: url(img.png) no-repeat center center fixed; background-size: cover; }
k9chelsea2
maybe [this] (https://www.w3schools.com/html/html_images_background.asp) or [this] (https://www.w3schools.com/cssref/pr_background-image.asp) can help
You need to use CSS.
And then INSIDE the div you add what you want.
It should work.
You need to add it inside the div.
noooo wtf
@JavaMaster1