Answers for "how can i make background image responsive as per container"

CSS
0

adding a perfect responsive background image

body {
    background-image: url('/your-image-url.png');
    background-size: cover;
    height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;

}
Posted by: Guest on December-04-2021

Code answers related to "how can i make background image responsive as per container"

Browse Popular Code Answers by Language