Answers for "using an image as a background can also be done through css"

CSS
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

add background image in html without css

<body background='path/to/image/file.png'>
Posted by: Guest on August-08-2021

Code answers related to "using an image as a background can also be done through css"

Browse Popular Code Answers by Language