background image...?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

background image...??

<body background= "image.jpg/png width="100%> .... problem us that it is displaying is background/wall but images r divided in many parts.... means same pic is displaying is 6 parts

26th Sep 2017, 1:55 PM
sanjeev
sanjeev - avatar
7 Answers
+ 3
Add this style as per you want by using style tag in head tag for. example <style> body{ background: no-repeat; } </style> for more details use description given below background-repeat This property specifies whether and how the image will repeat, or tile. The default is for the image to repeat both horizontally and vertically. You can change this by specifying a value other than repeat. repeat — The default. Repeats in both directions.repeat-x — Repeats only on the x-axis (horizontally across the element). repeat-y — Repeats only on the y-axis (vertically down the element). no-repeat — Does not repeat.
26th Sep 2017, 3:05 PM
Shubham Bauskar
Shubham Bauskar - avatar
+ 3
I m not getting but to make sure are u adding style tag in head section
26th Sep 2017, 6:22 PM
Shubham Bauskar
Shubham Bauskar - avatar
+ 2
try this <html> <head> <title></title> <style> body{ background: no-repeat; background-image: url(image.png); } </style> </head> <body> </body> </html>
26th Sep 2017, 6:39 PM
Shubham Bauskar
Shubham Bauskar - avatar
0
thanks for answer,bt in other ex.....it is written same,...bt still supporting bt in my code not work
26th Sep 2017, 6:07 PM
sanjeev
sanjeev - avatar
0
<body background="img.jpg" > </body> ......................... code is in system ,i m using mobile this time
26th Sep 2017, 6:20 PM
sanjeev
sanjeev - avatar
0
no...i want in my SITE backgroung,one image should be displayed...
26th Sep 2017, 6:34 PM
sanjeev
sanjeev - avatar
0
ex...i m making a hospital site....i want that hispital pic come in background.....
26th Sep 2017, 6:36 PM
sanjeev
sanjeev - avatar