Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    104
    Plugin Contributions
    0

    Default How to Adjust sub-Category column width

    Right now, on my categories index pages the column width for the sub-categories adjusts based on how many sub-categories there are. I want to set them all to a fixed 25%. As you can see in the links below, when I have four sub-categories, they go where I want them to, but when I have less than four sub-categories, the width increases to equal 100%, thus pushing them down below the image. BTW, this only happens in Firefox, not IE6.

    http://tehome.net/shop/index.php?mai...=index&cPath=1

    http://tehome.net/shop/index.php?mai...=index&cPath=2

  2. #2
    Join Date
    Feb 2007
    Posts
    104
    Plugin Contributions
    0

    Default Re: How to Adjust sub-Category column width

    Okay, now I feel dumb, it was right in front of me. Sometimes you stare at the screen so long, you just can't comprehend what you're reading. For anyone who wants to know how I did it, the file to edit is: includes/modules/category_row.php.

    I changed the following:
    $col_width = floor(100/$num_categories);
    } else {
    $col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW)

    to:
    $col_width = floor(25);
    } else {
    $col_width = floor(25)

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: How to Adjust sub-Category column width

    I came, I looked, and I saw everybody lined vertically so nice and pretty in both FF and IE7. Looks good.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: How to Adjust sub-Category column width

    I hate to tell you this, but you also have a problem when it is viewed in Opera 9x -- the sub-category images are all on top of each other in the upper right.

    I think the divs containing the sub-category images need a "clear: right;" added to them, at least that worked here and doesn't break anything in FF or IE as far as I could tell.

    Becky :-)

  5. #5
    Join Date
    Feb 2007
    Posts
    104
    Plugin Contributions
    0

    Default Re: How to Adjust sub-Category column width

    Thank you guys for checking out my site for me! Becky you just saved me so much time and headache as it would have taken me a long time to figure out how to fix the problem in Opera. Thanks a million...

 

 

Similar Threads

  1. How to adjust center column width?
    By anqus11 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Dec 2010, 08:00 AM
  2. How do I adjust the column width between the product image and the product name?
    By wiccan0974 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jun 2010, 10:16 AM
  3. how do i adjust table width
    By hangman21 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 May 2010, 09:43 PM
  4. how to adjust center column width?
    By paulchui in forum Basic Configuration
    Replies: 26
    Last Post: 27 Apr 2010, 11:26 PM
  5. help! how to adjust center column width?!
    By paulchui in forum Basic Configuration
    Replies: 6
    Last Post: 10 Nov 2009, 10:56 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR