background image...?? | SoloLearn: Learn to code for FREE!


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

9/26/2017 1:55:05 PM


7 Answers

New Answer


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.


I m not getting but to make sure are u adding style tag in head section


try this <html> <head> <title></title> <style> body{ background: no-repeat; background-image: url(image.png); } </style> </head> <body> </body> </html>


thanks for answer,bt in other is written same, still supporting bt in my code not work


<body background="img.jpg" > </body> ......................... code is in system ,i m using mobile this time


no...i want in my SITE backgroung,one image should be displayed...


ex...i m making a hospital site....i want that hispital pic come in background.....