?
Solved

Full Size Page Background

Posted on 2014-02-12
4
Medium Priority
?
400 Views
Last Modified: 2014-02-12
I am trying to make the page have a full size background regardless of the size of the browser window. I found code online but no matter what I do I cannot get it to work in this instance. Please help. HTML and CSS file are attached.
index.html
style.css
0
Comment
Question by:wayne_henry
[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
  • 2
4 Comments
 

Author Comment

by:wayne_henry
ID: 39853994
I posted all code and images to http://irawaynehenry.com/rw/
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 2000 total points
ID: 39854020
Remove this from the markup: <img src="images/rw-bg.jpg" id="bg" alt="">

Keep that image as a background to the body tag just the way you have it.

Add background-size: cover to the body css.
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39854023
Try this

body {
background:url('images/your_image.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
}
0
 

Author Closing Comment

by:wayne_henry
ID: 39854036
Worked perfectly. Thank you!
0

Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

752 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