+ 1

HTML images

I have tried several HTML codes for placing images for the website background. I could not get any to show up. What is the current way to put images on your website in Notepad or Notepad++?

13th Apr 2018, 4:35 PM
Joseph Hayes
Joseph Hayes - avatar
4 odpowiedzi
+ 3
Creating an img tag doesn't mean it will automatically become the background image,please,do not confuse that. body{ background-image:url(link); } or if you created an img tag specify it's width and height as the body
13th Apr 2018, 4:41 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
<img src="[PATH_TO_IMAGE]"></img>
13th Apr 2018, 4:36 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
Background:url('img.jpg'); that's may work for you :)
13th Apr 2018, 4:44 PM
MD AL-AMIN SARDER
MD AL-AMIN SARDER - avatar
+ 1
Try the following CSS block for body tag, if you want an image as background! body { background-image: url("image_url"); background-attachment: fixed; background-size: cover; background-repeat: no-repeat; /* optional */ }
13th Apr 2018, 4:56 PM
777
777 - avatar