Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with left column width

    It looks like you may have located the problem, though the fix would be a bit different.

    The stock tpl_main_page.php has no tags at all on the center column <td>:
    HTML Code:
        <td valign="top">
    <!-- bof  breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_...
    100&#37; there is wrong, but there should be no need to specify the width at all.
    Apparently there is an added table (not stock) just inside the center <td>, which is properly set at 100% width (though it would be better coding to follow modern practices and use a div with an id styled in the stylesheet).

  2. #2
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: Problem with left column width

    Hi Glenn,

    I totally agree, learning css is the way to go. My suggestion was just a quick fix rather then the way it should be done.

  3. #3
    Join Date
    Nov 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Problem with left column width

    Thanks a lot guys, changing the size of the cell from a percentage to 652 did the trick. This forum is another reason why I love zen-cart. The fast and accurate help.

    Thanks to both RuFuS and gjh42.

    Have a great day.

    P.S. I will learn CSS... any good book out there you recommend?

    Again, thanks!

  4. #4
    Join Date
    Nov 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Problem with left column width

    Oh, one more thing, since you guys seem to be very familiar with zen-cart, I need to make the "By Location? and "By Categories" centered within the left box, I can't seem to do that without making all the sub cats centered as well.

    Any ideas. As you're aware by now, I'm no expert when it comes to CSS.

    Thanks.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with left column width

    Since the links are not block-level elements, the properties that should make them center don't apply. It is possible to fix that nicely with this:
    Code:
    A.category-top,  A.category-top:visited {
        display: block; 
        text-align: center; 
        margin-bottom: -12px;
        }
    but unfortunately IE doesn't know how to handle the negative margin and intermittently erases a strip of the element below it.
    So the best I can suggest without getting into editing the code in tpl_categories.php is this:
    Code:
    A.category-top,  A.category-top:visited {
        margin-right:22px;
        }
    which puts them both quite near the center.

  6. #6
    Join Date
    Nov 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Problem with left column width

    Again, you're the best. The client loves the site and we're launching tonight.

    Even though it's not necessarily centered, it is quite close to what they had in mind.

    Again, thanks a million.

 

 

Similar Threads

  1. Problem with attributes being covered by left column...
    By OnlySeaDoo in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Feb 2011, 08:32 AM
  2. left column width
    By EarlyFloyd in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Mar 2010, 11:59 PM
  3. Left/Right Column width with css
    By redwax in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 16 Dec 2007, 08:33 AM
  4. Changing width/removing left column
    By [email protected] in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jul 2007, 03:19 PM
  5. left column width and center content problem
    By tbrides in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Dec 2006, 01:22 AM

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