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

How do I add a background image to my website?


How do I add a background image to my website

4 years ago
You are viewing a single comment. View All

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