Answers for "how to set up the background image css"

CSS
1

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 set up the background image css"

Browse Popular Code Answers by Language