Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    help question Layout frustration!

    Hello-
    We recently implmented a new dhtml menu into the top header of our site.
    We have many static pages (not zencart) on the site in which the layout is perfect.

    I put the code for the new menu into the tpl_header.php and it now appears on all the ZC pages...however...the layout gets a bit wonky on a few page and I cannot figure out how to code around it. Since the same included header code is in use, I cannot see how to fix it.

    Here are examples of the page with layout looking correct:

    http://www.truesolutions.com/index.p...pfrqer82jne9f2

    ..and here it's OK too(product_info):
    http://www.truesolutions.com/index.p...roducts_id=135

    ...and here it's perfect as well:
    http://www.truesolutions.com/index.p...e=products_new



    But here it is with the content area too wide for the page (index cpaths):
    http://www.truesolutions.com/index.p...=index&cPath=6


    ...and here(reviews):
    http://www.truesolutions.com/index.p...n_page=reviews

    ..and here(shopping_cart):
    http://www.truesolutions.com/index.p...r_of_uploads=0


    Can someone please tell me why the difference, and what I need to modify to get the page balanced on all calls to the index.php?

    Thanks,
    Steve

    Zen Cart 1.3.9e
    Database Patch Level: 1.3.9e

    Add-on's:
    SitemapXML
    MagneticOne - Google Product Feeder

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

    Default Re: Layout frustration!

    You have this in menu-style.css:

    .content {
    width: 670px;
    background: transparent url(images/content_bg.png) repeat-y;
    float: left;
    padding: 10px 20px;
    }

    The content class is also used on the pages you're having problems with, and that width is pushing the right sidebox column out.

    You could add stuff like this to the stylesheet for those pages if you need to leave that width there:

    #reviewsDefault .content {width:560px;}

  3. #3
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Layout frustration!

    An afterthought....

    Is it just that the center content section is defined as a fixed width somewhere for those "main_page" name/value pairs that are wonky? If so, where is that defined??

  4. #4
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Layout frustration!

    Doh!

    Thanks so much Steve.. I feel stoopid for having asked..

 

 

Similar Threads

  1. v139h Footer Frustration
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Nov 2012, 10:30 AM
  2. Logo Frustration
    By shandebar in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Jan 2009, 08:41 PM
  3. Header frustration
    By Ryk in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 19 Aug 2006, 03:25 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