Creating a Fullscreen Background Image in CSS


Apply a full-screen background image to the body of your webpage.

Source Code

body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments