Solved

Drupal 7 background image fixed without scrolling

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

Industry Leaders: 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

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.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 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