By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!Not really sure I understand but, if you want the whole page covered, you can use the body tag.
Not tested but, something like that.
CSS:body { background-image: url(path/to/image); background-repeat:no-repeat; background-size: cover; }
I've managed to do it here@Edrol97 Be aware that this will absolutely work, however if you have a short page the background image will only be behind the area taken up by the content as the body is only as tall as your content. You can specify a 100% (or 100vh) height/min-height on body element to ensure it fills the viewport and your background image will then also fill the viewport.
body {
background-image: url('path-to-your-image.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.