followthehollow
01-27-2009, 08:40 AM
Ah, the age old problem.
Seriously though, I'm designing a website for my high school and for a while things were going great. I had the template ready made in Photoshop, I was coding nonstop for a few hours giving Dreamweaver a hell of a workout.
Anyways, my issue is a very common one. I need to somehow manage to make this page position itself correctly in Firefox 1.0+ and at minimum, IE 6.0+.
I have a simple layout where there is a header, underneath of which there is a navigation menu to the left (fully CSS) and a main content div to the right of the navigation. By positioning everything absolute within a container, I can manage those parts. The problem starts when I try to put in a footer. Using absolute positioning, assuming the content ever got long enough, it would plow right over the footer without hesitation.
I want the content div to expand infinitely and push the footer div down with it, so that the page always maintains its structure. I realize that absolute positioning is just about the antithesis of this. I've tried it with relative positioning too, which leads to another problem. I can get the page to work, but only when giving the container div (which holds the whole page) an overflow: auto attribute, but I don't want the extra scrollbar.
Does anyone know how I could do this? It seems simple enough. The only thing that needs to be movable is the footer div, but it has to be positioned the same in both modern and antique browsers. I'd appreciate any help or light someone could shed on the thing.
Thanks
Seriously though, I'm designing a website for my high school and for a while things were going great. I had the template ready made in Photoshop, I was coding nonstop for a few hours giving Dreamweaver a hell of a workout.
Anyways, my issue is a very common one. I need to somehow manage to make this page position itself correctly in Firefox 1.0+ and at minimum, IE 6.0+.
I have a simple layout where there is a header, underneath of which there is a navigation menu to the left (fully CSS) and a main content div to the right of the navigation. By positioning everything absolute within a container, I can manage those parts. The problem starts when I try to put in a footer. Using absolute positioning, assuming the content ever got long enough, it would plow right over the footer without hesitation.
I want the content div to expand infinitely and push the footer div down with it, so that the page always maintains its structure. I realize that absolute positioning is just about the antithesis of this. I've tried it with relative positioning too, which leads to another problem. I can get the page to work, but only when giving the container div (which holds the whole page) an overflow: auto attribute, but I don't want the extra scrollbar.
Does anyone know how I could do this? It seems simple enough. The only thing that needs to be movable is the footer div, but it has to be positioned the same in both modern and antique browsers. I'd appreciate any help or light someone could shed on the thing.
Thanks