![]() |
Help with unique site coding
Hey guys! I was told to try posting this subject in the JS forum, so hopefully yo guys can help lol.
This is an image of the site design we want to go with; http://www.rutholsonphoto.com/rop-build/idea.jpg And this is how we want it to function: http://www.rutholsonphoto.com/rop-build/animation.gif The main idea being that there's an extra div attached to the tail-end of the footer. That extra div just has a background color tag to "cover" the tiled background in the inner div. How can I accomplish something like this? I'm so lost. The footer needs to be a specific distance away from the main-content div, and also obey the fact that it CANNOT cover any of the contents of the main-content div. So therefore no sticky footers or anything. And adding further difficulty is the need for the generated height of the extra div to NOT affect the overall height of the page. But to maybe add 30-50px to it. I need this because I'm not a fan of the titled image on a page being seen after the footer. It's something that I've been wanting to do for a while, but can't figure out how. |
You have posted this in the JavaScript Frameworks section. Which JS framework are you using or going to use or talking about?
|
Quote:
|
OK, suppose you have a div with ID “footer” which holds your footer content. You’d add another div at the end (dynamically with jQuery) and animate the height of that div. For example (untested):
Code:
$('#footer').append($('<div>', {id: 'footer_bottom'}));Of course, the rest is all done with CSS (applying background etc.). Edit: Actually, reading your post again, I’m not sure if I’ve understood correctly what you are trying to achieve. How is the footer supposed to be movable? |
Quote:
Edit: So basically I want the site to look and function like this site here, but with the added benefit of the footer-bottom div thing you are talking about. However the triggering of the event SHOULD be automatic. This is so confusing, I hope I'm talking about this right. |
Perhaps I've misunderstood, but do you really need to do anything special for this?
Could you not just have four separate (perhaps static) divs? When (ajax) content is loaded into the main content div it will automatically expand to contain the content and the footer div will always be below it - it won't overlap. If you give the content div a background it will not spill over into the footer, nor into the following tail div with the other background pattern. You could perhaps give the footer and tail divs a specific height, and maybe give the footer div a top-margin so it is slightly separated from the content above it. As I say, perhaps I've misunderstood. Maybe you want the final (tail) div to automatically expand. Soz, Andy. |
.. the last tail div would need a specific height (or perhaps a minimum-height) otherwise.. how would you know when to finish it?
Again, apologies if I've mis-understood. Andy. |
Quote:
Here's the site THUS far See how you can see the patterned background image after the footer? Well I want it to be just a flat color after that. Partly an aesthetic thing for me more than anything. |
Well I had to zoom in and remove my status bar to see it, but ;)
The grey pictured background is a background for the body so will extend to the full height of the page. The 'p' element within your footer has a 27 pixel bottom margin, so this background shows through the margin. Use css to remove this: Code:
footer p { margin-bottom: 0; } |
Quote:
Quote:
|
You now have a table in your footer which is taller than the footer section, causing the body background to again show after the grey band of the footer. So either increase the height of the footer to contain the table or reduce the height of elements within the table that cause it to expand beyond the footer container.
I would re-design it but it would involve a bit of effort: Don't put the background image on the body; I would remove the float: left that you've applied to a number of elements - I'm not sure why this is needed; Have a header div that contains the banner and nav bar and has the thin, repeating image as a background; A main content area that has the gray graphic as a background; A footer area (as you have currently) - although I probably wouldn't use a table for layout but float elements and use margins to space them (possibly); A fourth section (if you still want it) after the footer that contains the plain colour or background image that you want and has a specific height. |
Ok a couple questions here, as I'm trying these out with firebug as I read and weird things are happening...
Quote:
Quote:
Quote:
Quote:
If I take it off of #page-wrap then the background image vanishes. If I take it off of #nav, nothing happens. If I take it off of #content-group then the graphic from #page-wrap returns, but distorted. #content needs it. #specs needs it on both or else the [a] will slip out of the images. Same with #attn. If footer doesn't have it, it goes to the top of the page. Quote:
Quote:
1-html>2-body>3-page-wrap>4-container. So are you proposing that I create another 100% width div between the 2&3 or 3&4 to apply the background image onto? Quote:
|
So are saying I should structure it like this?
Code:
<!DOCTYPE HTML> |
Quote:
Code:
<!DOCTYPE HTML> |
Quote:
UPDATE: Also, if this works (now let's get to the java part of this lol), is there a way using jQuery to make java render a solid color between the end of the footer and the bottom of the page/window? I tried some prelim tests and using another div, if the page was shorter than the default size of the window...some of the graphic was still showing. Meaning I'll need something dynamic to pull this off. UPDATE 2: Nevermind that last question. I went ahead with the rebild and NOW I don't need jquery to fix the problem. I guess I had some faulty code. Thanks for your help, AndrewGSW!:) |
| All times are GMT +1. The time now is 02:17 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.