I'm learning how to add a background image using css. I've got the image loaded but I want the image to stay put while I scroll.. Stack overflow and google said used Background-attachment:Fixed; but that isn't working for me. Any suggestions would be nice as well. Thanks
![Cover image for Background-attachment: Fixed:](https://media.dev.to/cdn-cgi/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frspa6ke955dujk37fcvu.jpeg)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (4)
Can you maybe share bits of your code, so it'd be easier to help you out?
I created a Fiddle for you, which maybe can help you out:
jsfiddle.net/ardianperlaska/x0mwf4...
This is what I did
What Browser are you using? And what version?
Also, is the Fiddle working well for you?
I'm using chrome. Fiddle works well! I saw what you did and applied it to my code. It worked but not to the extent I was looking for. Super new to this coding life so I'm not exactly sure how I can show you what it looks like