mustish1
asked on
Image stay at the same place
How the background image stay at the same place when user scroll the page up and down and also move it halfway down the page and tiling it horizontally by using css?
Thanks
Thanks
<html>
<head>
<ttle></title>
<style type = "text/css">
body
{
background-image:url('MyPicture.png');
background-repeat:no-repeat;
}
</style>
</head>
<body>
</body>
</html>
ASKER
its showing a bunch of images. Is there any way it shows only one
Thanks
Thanks
Change
background-repeat:repeat-x ;
To
background-repeat:none;
background-repeat:repeat-x
To
background-repeat:none;
ASKER
The code fill it up the whole page with the image.
<html>
<head>
<ttle></title>
<style type = "text/css">
body
{
background-image:url('mypic.png');
background-position:center;
background-repeat:none;
background-attachment:fixed;
}
</style>
</head>
<body>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
You are welcome - thanks for the points.
Open in new window