Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Location
    Trowbridge, Wiltshire
    Posts
    121
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default 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.

    Rob

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

 

 

Similar Threads

  1. How to use the widht / height with the zen_image function
    By mesnitu in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Dec 2015, 12:43 PM
  2. v150 How to set columns height from top to bottom of the page?
    By Dr Lem in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 May 2012, 12:06 AM
  3. Image height and width in the products listing page
    By suryapavan in forum General Questions
    Replies: 3
    Last Post: 18 Apr 2010, 03:27 PM
  4. how to make page lenght a minium height AND have the footer at bottom of the page????
    By jamesdavid in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Jun 2008, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg