Forums / Templates, Stylesheets, Page Layout / Fixing the height of the page

Fixing the height of the page

Locked

Views: 923

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Mar 2009, 2:12 PM
#1
scottmcclean avatar

scottmcclean

Zen Follower

Join Date:
Mar 2009
Location:
Trowbridge, Wiltshire
Posts:
121
Plugin Contributions:
0

Fixing the height of the page

Hi there,
First let me start of by saying that I am really impressed with the forum and FAQs - I downloaded Zen Cart yesterday and have made great progress without knowing any PHP and with basic css experience.

My question is this: Is there a way to control the height pf pages that dont fill the height of the browser? Some of my pages have little content and finish two thirds of the way down the browser and I would like the "footer" to sit at the bottom of the browser - like you can with a table layout?

Many thanks

Scott

6 Mar 2009, 2:56 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Fixing the height of the page

You can Google up many tutorials about doing this with relatively simple HTML pages. But doing it in Zen Cart would be another kettle of fish altogether. That's because ZC is divs within divs within divs, with one or more side columns also containing multiple divs, and then content coming and going, any page of which may have more or fewer divs in it. And all of those divs may have margins which add up to total heights which will be different from page to page, while the trick which makes this work in simple HTML depends on knowing the total of all the various heights. It's a ghastly thing to try to do this in Zen Cart.

And having said that, no doubt someone else will chime in and say, nah, it's easy. I'll wait and see. :lookaroun

Rob

Breakfast: the most important donut of the day.

6 Mar 2009, 5:02 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Fixing the height of the page

There's a thread here:

http://www.zen-cart.com/forum/showthread.php?t=104107

but I think the real answer is to have enough content on your pages to fill the browser.