Solved

Drupal 7 background image fixed without scrolling

Posted on 2014-07-24
1
368 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

773 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