Answers for "how to fill image width and height full in div background"

CSS
2

make background image full width

html {
    height: 100%;
}
body {
    color: #999;
    background: url('../images/background/main_bg.jpg') no-repeat center center fixed;
    font-family: 'Roboto', sans-serif;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
Posted by: Guest on June-22-2021
0

css fill div with background image

div {
  background-image: url("example.com/image.png");
  background-size: 100% 100%;
}
Posted by: Guest on June-02-2020

Code answers related to "how to fill image width and height full in div background"

Browse Popular Code Answers by Language