+ 1
how to add background image?
6 Answers
+ 3
You can only do that in css.
+ 2
example with url (in the CSS file):
#image {
background-image: url(http://www.image.com/image.png);
}
+ 2
you can use CSS background-image property.
for example:
body {
background-image: url("donut.png");
}
remember to put the image in the same folder as your css/html file.
+ 2
<img src="source here">
+ 1
Case 1: If it is on an entire page, you will write, inside the <body> tag as thus:
<body background="image/image.png">
Case 2: If it is for table, i.e table background:
<table background="image/image.png">
And don't forget to close any of the tags
0
but there is also something to notice. NOT ALL PICTURES HAVE AS EXTENSION (png)
so try to check the property of the picture first if not it might not execute