Login | Register | FAQ
Anonymous

background-attachment: scroll

+ Post a reply

2 posts Page 1 of 1


background-attachment: scroll

by bigtoe » Sun Jan 26, 2014 6:30 pm

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;}
User avatar

bigtoe

  • Posts: 1
  • Joined: Sun Jan 26, 2014 6:25 pm

Re: background-attachment: scroll

by XainPro » Tue Jan 28, 2014 10:15 am

try to remove this line fro your css and check if it works

background-position: 50% 30%
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1