Home > Blockchain >  Image in background using CSS or any way using HTML
Image in background using CSS or any way using HTML

Time:07-28

Is there any way of drawing the background of this image using CSS

CodePudding user response:

I don't understand the question clearly but if you mean, the html body have an background image that can be achieved using css.

body{
  background-color = url("enter the image url here") 
}

if it saved on your computer, make sure your photo should be accessible from style.css file

body{
  background-color = url("enter the image path from root('/')") 
}

suppose hierarchy is like this:-
index.html
CSS
 -PICS
   -img.png
 -style.css
 since PICS and style.css are on same hierarchy level

body{
  background-color = url("PICS/img.png") 
}

CodePudding user response:

What is the way of making the background of this image using CSS

  • Related