The name may be a little confusing, I will try my best to explain what I need to achieve. Basically, I have the following elements for a specific web page:
- Title - always displayed above the content.
- Content - The background image covers the entire content area - this is the key part.
- Sub-footer - Information about content always visible below.
- The footer is the standard footer of the company, visible if the height of the window is a certain size, otherwise you need to scroll down to see it
As I mentioned above, part of the content of the page is perhaps the hardest part. I need a large image to be in the background, which covers the entire area. CSS tricks have a great guide on creating full-screen background images . Therefore, I hope that this can be achieved easily. The problem is how to make the footer at the bottom if the window is <720px with the footer below it below the fold (you need to scroll to it). A window> 720px should show both the footer and the footer without scrollbars.
At this point, I will not even worry about the minimum height that the content should have (perhaps this will require a scrollbar in the content of the <div> or make a footer and lower times).
Here are the image layouts of what I'm trying to achieve:
First up is the <720px tall window, where the footer needs to be scrolled to: 
The second is the <720px tall window, which was scrolled down to see the footer: 
Finally - a tall window> 720px, which has no scrollbars, because everything is visible: 
I am using jQuery and don't care about IE6. Can I achieve this in CSS? Do I need to use jQuery for dynamic tuning? Full page backgrounds are easy to execute using css3, I am glad to use css3 or html5 to do what I need.
jquery html css html5 css3
at.
source share