+ 1

How to upload background pic

21st Mar 2017, 7:55 AM
Mohd Asif
Mohd Asif - avatar
7 ответов
+ 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
21st Mar 2017, 8:18 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 2
background pic is showing large so I can't see full image
21st Mar 2017, 8:23 AM
Mohd Asif
Mohd Asif - avatar
+ 2
I want tolearn the html starting
21st Mar 2017, 8:30 AM
Mohd Asif
Mohd Asif - avatar
+ 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
21st Mar 2017, 8:10 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 1
it's coaxing of the css
21st Mar 2017, 8:12 AM
Mohd Asif
Mohd Asif - avatar
+ 1
I want to know in the html
21st Mar 2017, 8:13 AM
Mohd Asif
Mohd Asif - avatar
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*/ }
21st Mar 2017, 8:31 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar