Login | Register | FAQ

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:

<title>Learning CSS and HTML</title>
<link rel="stylesheet" type="text/css" href="cssforcss.css" />
<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 />


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


  • 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


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

+ Post a reply

Page 1 of 1