?
Solved

Drupal 7 background image fixed without scrolling

Posted on 2014-07-24
1
Medium Priority
?
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Aaron Feledy earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses

800 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