+ 1
How to upload background pic
7 Answers
+ 2
Till HTML4 <body> has an attribute 'background' for this purpose, but in HTML5, it has been deprecated. Please examine the following code
<body background="back.jpg">
....
</body
+ 2
background pic is showing large so I can't see full image
+ 2
I want tolearn the html starting
+ 1
I assume that you want to set a background image for your webpage. This can be done by using CSS. Place following code in <head> section of your page
<style type="text/css">
body{
background-image: url('imagefile');
}
</style
+ 1
it's coaxing of the css
+ 1
I want to know in the html
0
Either you have to resize the image according to the view area or make use of CSS properties
body{
background-image:url('back.jpg');
background-repeat:no-repeat;
background-size:contain; /*scale the image so that it fits in the container*/
}