Solved

Drupal 7 background image fixed without scrolling

Posted on 2014-07-24
1
358 Views
Last Modified: 2014-08-03
In a Drupal 7 website, want to have background image fixed without scrolling.
Used overflow-y:hidden to make it, but only working in Firefox.
body {
overflow-y:hidden;
}
The overflow-y seems not working in other browsers.

Is there other way like overflow-y to make background image fixed without scrolling for all browsers?
0
Comment
Question by:drupal_100
1 Comment
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 500 total points
Comment Utility
Set your background like this:

body {
  background: url(your-image.jpg) no-repeat fixed left top;
}

The "fixed" aspect of that will keep the image from scrolling.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now