Answers for "add background image with fill width"

CSS
0

background image fill div

div {
	background-image: url("example.com/image.png");
    background-repeat: no-repeat;
    background-size: cover;
}
Posted by: Guest on February-19-2021
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

Code answers related to "add background image with fill width"

Browse Popular Code Answers by Language