Solved

Full Size Page Background

Posted on 2014-02-12
4
384 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
  • 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 500 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 52

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript_Set_dropdown_value 7 33
CSS issue in Nested Master Pages 9 13
css selector 1 17
Customizing jQuery UI Accordion CSS 3 15
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

777 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