+ Reply to Thread
Results 1 to 11 of 11

Thread: spacing between category lines

  1. #1
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2

    spacing between category lines

    Is it possible to left justify and also change the space between the main category listings? This is what I have and I'd like to remove the spacing between the subcategories and left justify them:
    Category 1.jpg


    In the past I was able to adjust the subcategories by adding:

    .cat_products .box_row {
    border: 0;
    padding: 10px 0;
    }

    to the style_main.css.php stylesheet file. This made it look like this, which is what I'd like the main categoryu o look like (also left justified)

    Category 2.jpgI'd like to be able to do the same with the main category listings. Thanks!
    Regards,

    Tom

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Change:
    Code:
    .subcategories .box_row { 
        border: 0;
        padding: 5px;
    }
    to:
    Code:
    .subcategories .box_row { 
        border: 0;
        padding: 0;
    }
    Change:
    Code:
    .subcategories .box_row {
        margin-bottom: 30px;
    }
    to:
    Code:
    .subcategories .box_row {
        text-align:left;
    }

  3. #3
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2
    Thank you very much Jamie! I'll give that a whirl. Thanks for the help!
    Regards,

    Tom

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    You're welcome. The extra space is there by default because they are normally shown 3 to a row and with optional thumbnail images which look odd without some extra spacing. If you are going with one per row and no images, it would look better with less spacing.

  5. #5
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2
    Actually I like the default, but the client wants it changed What you gave me works like a charm.

    Do I need to do something to force the thumbnails to the left or is that not possible? Category 3.jpg
    Regards,

    Tom

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Unless you changed other CSS causing a conflict, the above CSS changes should align the subcategory names and images to the left.

  7. #7
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2
    I couldn't finda any conflicts. The "Limit Switches" category above has no parent, or sub-categories. Does that mean I have to left align the main categories in the style_main.css ?
    Regards,

    Tom

  8. #8
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2
    I've been trying some different things to get this sub-category left aligned. (I think it's called a sub-category, it has a parent category). I'm trying to get the photos and text to left align. I already made the change that you suggested above and that left aligned the text in several categories that don't have photos. However categories with thumbnails don't want to left align, so I'm flummoxed. Any help would be appreciated!


    Category 4.jpg
    Regards,

    Tom

  9. #9
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2
    I think I've got this straightened around. It had to do with the padding in the .cat_products.

    .cat_products .box_row {

    border: 0;

    padding: 5px 0;
    Regards,

    Tom

  10. #10
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Glad you got it working

  11. #11
    Client tgrant's Avatar
    Join Date
    Mar 2011
    Posts
    132
    Squirrelcart version
    v3.3.2
    Amazing the trouble you can get into when you change the stylesheet too many times Thanks again for your help on this!
    Regards,

    Tom

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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