Solved

Make a background image bigger than the browser window

Posted on 2014-03-19
1
396 Views
Last Modified: 2014-04-07
Hi,

I have a background image teh fills the entire browser window. I have set it to "cover" - so that it stretches to fill the window

I want to create a parrallax effect whereby it moves with mouse movement, So to do this i think i need to make the background image larger than the browser window, so that it has room to move left and right

How can i achieve this?
0
Comment
Question by:coolispaul
1 Comment
 
LVL 11

Accepted Solution

by:
Tej Pratap Shukla ~Dexter earned 500 total points
Comment Utility
Hey coolispaul
You can achieve this by altering background image height and width , but overall the background image would look pixelarated .I have a solution that you could achieve somewhat "parallax" effect :
just modify the css by creating an id
#example{
  background-image:url(abcd.jpg);
      background-attachment:fixed;
background-size:cover;
}
you can call this id from body , eg : <body id="example">
Feel free to revert back for further query

Thanks
~Dex
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

771 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

12 Experts available now in Live!

Get 1:1 Help Now