background-attachment: scroll
2 posts Page 1 of 1
background-attachment: scroll
Can't seem to get my image to scroll. Default also seems to be fixed. Also when I click on the example in the tutorial it doesn't scroll.html here:
<html>
<head>
<title>Learning CSS and HTML</title>
<link rel="stylesheet" type="text/css" href="cssforcss.css" />
</head>
<body>
<h1>lets see how this works</h1>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<p>moar</p>
</body>
</html>
css here:
body {background-color: #FF0000;
background-image: url(butterfly.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: 50% 30%
}
h1 {color: 990000; background-color: FC9804;}
Re: background-attachment: scroll
try to remove this line fro your css and check if it worksbackground-position: 50% 30%
Page 1 of 1