Propriété de fond CSS
body {
background: lightblue url("img_tree.gif") no-repeat fixed center;
}
naly moslih
body {
background: lightblue url("img_tree.gif") no-repeat fixed center;
}
/* Color (Example: red): */
html,body {
background-color: red;
}
/* Image (Example: your.picture): */
html,body {
background-image: url("your.picture");
}
body {
height: 100vh;
background: url(relative path or url in double quotes) | linear-gradient()
background-size: cover | contain | any unit value e.g. 1500px;
background-attachment: fixed | local | scroll;
background-position: x-offset(values:left,center,right) y-offset(values:top,center,bottom);
/* or single value for both x & y-offset */
background-repeat: repeat (enabled by default) | no-repeat;
/* some of them will only work provided height of the container */
/* That's pretty much it folks */
/* I can't cover details of each value. You'd have to search it */
}
background: linear-gradient(0deg, rgba(2,173,231,0.5), rgba(2,173,231,0.5)), url(images/mba-grid-5px-bg.png) repeat;
/*This is an example*/
.example {
background: url("Yeet");
}