Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
45

How do I add a background image to my website?

RYANBEEBE
RYANBEEBE

How do I add a background image to my website

4 years ago

Voters

Comments

TopNew
19

As I understand you want to have a fullsize background image. This can be done via

body, html { height: 100%; } .bg { /* The image used */ background-image: url("img.jpg"); /* Full height */ height: 100%; /* Center and scale the image nicely */ background-position: center; background-repeat: no-repeat; background-size: cover; }
4 years ago
7
katyadee
katyadee

@enigma512
Thanks Enigma! We appreciate all your contributions :)

4 years ago
5
katyadee
katyadee

Hey

@RyanBeebe
, I edited your post so your question is in the subject line. That way users who might have an answer can find it more easily :)

4 years ago
3
azda
azda

you add it with skill

1 year ago
2
GaryBurden
GaryBurden

Invalid image url

1 year ago
2
Vibrursan
Vibrursan

It's strange when people answer funny to such important topics like this. I want to discover too the knowledge of putting the background on a website or forum. I worked hard doing various pictures for my future forum on https://depositphotos.com/upscaler.html and it helped me a lot. I expected that I should use professional programs like adobe photoshop. Somehow I got the chance to try myself in this stuff, and thanks to that, we got such handy websites.

1 year ago
Load more