Answers for "how to control background image in css"

CSS
2

how to change background image in css

<style>
body{
  background-image: url('img_girl.jpg');
}
</style>
Posted by: Guest on July-24-2020
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

Code answers related to "how to control background image in css"

Browse Popular Code Answers by Language