.Background {
background-image: url("Your picture name.jpg");
background-repeat: no-repeat;
height: 100%;
background-position: center;
background-size: cover;
}
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;
}
div {
background-image: url("example.com/image.png");
background-repeat: no-repeat;
background-size: cover;
}
body {
background: url(path/to/bg-image.jpg) no-repeat center center fixed;
background-size: cover;
}
div {
background-image: url("example.com/image.png");
background-size: 100% 100%;
}
Code Example |
---|
Css :: how to prevent text from breaking css |
Css :: How to prevent text overflow |
Css :: css image fit in div with aspect ratio |
Css :: input number hide arrows |
Css :: radio checked css |
Css :: div border glow effect css |
Css :: no border css |
Css :: css button transparent |
Css :: border none select |
Css :: meta refresh only once |
Css :: mettre une image au milieu css |
Css :: how to allow scroll in div |
Css :: calc sass variables |
Css :: background color semi transparent |
Css :: vertical text css |
Css :: css change text |
Css :: bring element to front css |
Css :: watch scss to css |
Css :: css keep image ratio |
Css :: transition scale |
Css :: css disable scroll mobile |
Css :: add background image and color css |
Css :: center div absolute |
Css :: hex code for khaki |
Css :: box-shadow |
Css :: limit text size |
Css :: ngclass multiple conditions |
Css :: gradient over image css |
Css :: how to hide scrollbar overflow |
Css :: restful url to update status |