Results 1 to 10 of 39

Hybrid View

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

    Default Re: Subcategory Layout Question!!

    Try adding

    line-height: 30px;

    to .categoryListBoxContents {}

    Centers it nicely in Firefox, but I can't view that test in IE.

  2. #2
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    Quote Originally Posted by gjh42 View Post
    Try adding

    line-height: 30px;

    to .categoryListBoxContents {}

    Centers it nicely in Firefox, but I can't view that test in IE.
    Thanx Glen :)

    I tried that when I saw Rob added it, did center it nicely in FF but in IE the text was at the bottom and half cut off... I hate IE LOL
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

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

    Default Re: Subcategory Layout Question!!

    Oops, missed Rob's line-height item.

    Have you tried
    Code:
    .categoryListBoxContents a {
        line-height: 30px;
        }
    It worked just the same as applying it to .categoryListBoxContents { when I tried it in FF, but maybe it will make IE behave where the first version didn't.

  4. #4
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    Quote Originally Posted by gjh42 View Post
    Oops, missed Rob's line-height item.

    Have you tried
    Code:
    .categoryListBoxContents a {
        line-height: 30px;
        }
    It worked just the same as applying it to .categoryListBoxContents { when I tried it in FF, but maybe it will make IE behave where the first version didn't.
    Unfortunately didn't work lol
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Subcategory Layout Question!!

    Quote Originally Posted by christon26 View Post
    Thanx Glen :)

    I tried that when I saw Rob added it, did center it nicely in FF but in IE the text was at the bottom and half cut off... I hate IE LOL
    I do not see where you have changed your code?

    As shown in my previous post, the coding I suggested does not use a blank gif nor the <br />, which must both be removed.

  6. #6
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    Quote Originally Posted by Website Rob View Post
    I do not see where you have changed your code?

    As shown in my previous post, the coding I suggested does not use a blank gif nor the <br />, which must both be removed.
    Sorry, I must have missed that bit...will find the file and try it now
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  7. #7
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    Alright...this is where I am getting stuck LOL

    That piece of code is pulled from includes/modules/category_row.php in the following code:

    Code:
        if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';
        $cPath_new = zen_get_path($categories->fields['categories_id']);
    
        // strip out 0_ from top level cats
        $cPath_new = str_replace('=0_', '=', $cPath_new);
    
        //    $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);
    
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                               'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
    I can see where I remove the break....however I am not sure how to remove the image without screwing it up LOL
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Subcategory Layout Question!!

    I wasn't aware we were dealing with a module. Is it Categories Dressing?

    If yes, the first line you posted tells me there is switch for the blank gif:

    if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';

    Turn that off, remove the <br /> and you should be good to go.

    Otherwise, best to wait until Glenn offers a suggestion.

  9. #9
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    It's the hide categories mod :)

    I removed the break but that had no effect....and I don't know how to 'switch off' the blank gif LOL will have a dig around the admin and see if it's there somewhere
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. Edit Subcategory Layout
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Nov 2011, 09:51 AM
  2. Changing layout of subcategory
    By rgerards in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 29 Jul 2009, 12:07 AM
  3. Subcategory Image Layout in Explorer
    By dietcokelemon in forum Basic Configuration
    Replies: 2
    Last Post: 4 Aug 2006, 01:21 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