Answers for "how to define background image in css"

CSS
124

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
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

background url with color css

background: linear-gradient(0deg, rgba(2,173,231,0.5), rgba(2,173,231,0.5)), url(images/mba-grid-5px-bg.png) repeat;
Posted by: Guest on September-01-2020
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 define background image in css"

Browse Popular Code Answers by Language