background color and image css code example
Example 1: How to set a image as a backgroung image
<style>
body {
background-image: url('img_girl.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
Example 2: add background image and color css
background:linear-gradient( rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5)100%),url("logo/header-background.png");
Example 3: how to add background in css
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
Example 4: adding background image css
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
body {
background-image: url("img_tree.gif"), url("paper.gif");
background-color: #cccccc;
}