Answers for "how to add a background in css"

CSS
125

css background image

background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Posted by: Guest on April-07-2020
13

how to add background in css

body {
 background-image: url("paper.gif");
 background-color: #cccccc;
}
Posted by: Guest on November-07-2019
1

css change background color of page

/* Use the following code: */
html {background-color: #fefefe;} 
/* You can change the hexedecimal code to RGB, RGBA, name & more colors!*/
Posted by: Guest on June-21-2020
0

how to add background image in css

.bg-img{
 background-image: url("../img/bookGlowing.jpg"); /*In case the picture is in another folder and you are in css folder*/
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
Posted by: Guest on June-05-2021
0

ho to add background image in css

body {
  background-image: url("img_tree.gif"), url("paper.gif");

    background-color: #cccccc;
}
Posted by: Guest on May-11-2021

Code answers related to "how to add a background in css"

Browse Popular Code Answers by Language