Solved

Drupal 7 background image fixed without scrolling

Posted on 2014-07-24
1
373 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
ID: 40218375
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

860 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