full page background image in html
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
full page background image in html
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
how to cover full image in css
body {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
html background image fit to screen
body {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
how to make an image a full background in html
I have set the fixed position, you can set it to whatever you want.
.bg-image {
width: 100%;
height: 100%;
position: fixed;
right: 0;
left: 0;
top: 0;
bottom: 0;
}
body background image in html
body {
background-image: url('img_girl.jpg');
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us