+ 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
7 Antworten
+ 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.
+ 3
I m not getting but to make sure are u adding style tag in head section
+ 2
try this
<html>
<head>
<title></title>
<style>
body{
background: no-repeat;
background-image: url(image.png);
}
</style>
</head>
<body>
</body>
</html>
0
thanks for answer,bt in other ex.....it is written same,...bt still supporting bt in my code not work
0
<body background="img.jpg" >
</body>
.........................
code is in system ,i m using mobile this time
0
no...i want in my SITE backgroung,one image should be displayed...
0
ex...i m making a hospital site....i want that hispital pic come in background.....