How to make background fixed while scrolling

body {
  background-image: url("img_tree.gif");
  background-repeat: no-repeat;
  background-attachment: fixed;
}

3.8
5
Greggo 150 points

                                    On-scroll fixed background

3.8 (5 Votes)
0
0
0
Jela 110 points

                                    On-scroll fixed background

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to fix background with scroll background fixed content scroll scrolling content over fixed background background image scroll fixed fixed background image while scrolling css background fixed on. scroll change background on scroll with fixed fixed background when scrolling css fixed background scroll effect create window in background fixed how to set a fixed background as scrolling down fixed background scroll fixed background scrolling css css fixed scrolling background image background image fixed on scroll allow scroll on fixed background div allow scroll on fixed background fixed background with scrolling content keep background image fixed during scroll using css how to make background image fixed as you scrolling css background position fixed scroll scroll with fixed background image css make background image position fixed and scroll content up css fixed background scrolling content fixed background image scrolling content example how to fix background on scroll html how to make background image fixed when scrolling fixed background image scrolling css background image fixed when scrolling css background static while scrolling scroll a page with background fixed html how to keep background header fixed while scrolling how to keep background fixed while scrolling background image css fixed scroll css fixed background on scroll set a fixed background image in css that allows content scrolling fixed background image scrolling content background image fixed scroll background fixed using css but still while scrolling it move little js chage fixed background image while scrolling css keep background image fixed but content should scroll fixed background on scroll css fixed background scrolling background image css scroll css how to make background not scrollable image fixed css web background doesn't move page scroll background image css make background not scroll backgrounf url no scroll how to fix an image to background in html how to make fixed background image in css html sticky background and image In CSS, Default is “scroll” for background-attachment bg img fixed background-image attached to the <Page> view css text scroll over background background-attachment: fixed; properties background image scroll down backrgound scroll css background scrol scroll background css how to make background image scroll with page background stays in place css css background image attacment background image fixed to div one page image stays while you scroll attachment in css <a>attachment css scrollable background image css html background position and background attachment in css how to make the background image fixed in css css background-attachment fixed image on scrolling page how make backgroud fixed css how to make a background that follows scrolls attachment html css background attachments\ css cover image scroll with page Sto scrolling the background of a fixed css make the background static while scroll scroll over background image css How to make background fixed while scrolling
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source