+ 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++?
4 Antworten
+ 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
+ 2
<img src="[PATH_TO_IMAGE]"></img>
+ 1
Background:url('img.jpg');
that's may work for you :)
+ 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 */
}