Results 1 to 9 of 9
  1. #1

    red flag How to align text in side category box. Hard to read them.

    I am working on www.jaylyns.com and trying to realign the categories in the side box. Some categories are really long and wrap to the next line but align with main category. At first glance it looks like the wrapped text are the categories. Does anyone know how to make this look more presentable and less confusing to the custoemrs. Thanks for your help.

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,173
    Plugin Contributions
    0

    Default Re: How to align text in side category box. Hard to read them.

    Quote Originally Posted by jaylyns View Post
    I am working on www.jaylyns.com and trying to realign the categories in the side box. Some categories are really long and wrap to the next line but align with main category. At first glance it looks like the wrapped text are the categories. Does anyone know how to make this look more presentable and less confusing to the custoemrs. Thanks for your help.
    includes/ templates/ your_template/ css/ stylesheet.css

    Add the following declaration if not found in the sheet.
    1. #categories a {display: block;}

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

    Default Re: How to align text in side category box. Hard to read them.

    Be aware that this has a side effect: block display will combine with the <br /> coded into tpl_categories.php to put an extra space between categories. You can either edit /includes/templates/your_template/sideboxes/tpl_categories.php to remove the <br />, or you can install Categories Dressing which does this and much more.

  4. #4

    red flag Re: How to align text in side category box. Hard to read them.

    That did not fix this. It still does not indent the word wrap on long categories. Any other ideas? Please help.

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,173
    Plugin Contributions
    0

    Default Re: How to align text in side category box. Hard to read them.

    Quote Originally Posted by jaylyns View Post
    That did not fix this. It still does not indent the word wrap on long categories. Any other ideas? Please help.
    J,
    Resize your side box back as before, I am working on the fix please..

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

    Default Re: How to align text in side category box. Hard to read them.

    Block display is not meant to indent text by itself; it makes the text a block element that can have spacing and other styling applied to it.

    You can make the categories spaced so that it is clear which is which, and do whatever indenting or outdenting you want.

  7. #7

    Default Re: How to align text in side category box. Hard to read them.

    Got it looking much better. Thanks for all your help. One question though. Is there a way to have different bullets for different levels of subcategories? Thanks again.

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

    Default Re: How to align text in side category box. Hard to read them.

    Not within admin settings, but it would be a relatively simple coding addition in top_categories.php to add a class that indicates the subcat level and then style a background bullet accordingly.

    This is described in the Changing color of Categories and Sub-Categories thread, post 20 ("simpler" version).

    Once you have the classes as shown there, you would add to the stylesheet

    a.category-subs1, a.category-products1 {
    color: #7733ff;/*if you want the text a different color*/
    padding-left: 1.5em;/*adjust to taste*/
    background: url(../images/yourbullet2.gif) center left;
    }

    a.category-subs2, a.category-products2 {
    color: #336699;/*if you want the text a different color*/
    padding-left: 1.5em;/*adjust to taste*/
    background: url(../images/yourbullet1.gif) center left;
    }
    Last edited by gjh42; 13 Apr 2008 at 11:15 PM.

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

    Default Re: How to align text in side category box. Hard to read them.

    Fine-tuning:
    Code:
    a.category-subs1, a.category-products1 {
    color: #7733ff;/*if you want the text a different color*/
    padding-left: 1.5em;/*adjust to taste*/
    background: url(../images/yourbullet1.gif) 0.1em 50% no-repeat;
    }
    
    a.category-subs2, a.category-products2 {
    color: #336699;/*if you want the text a different color*/
    padding-left: 3.0em;/*adjust to taste*/
    background: url(../images/yourbullet2.gif) 1.5em 50% no-repeat;
    }
    You would probably want to set the subcategories indent and separator to nothing in admin > Configuration > Layout Settings if you use this bullet method.

 

 

Similar Threads

  1. Side by side read-only attributes... possible? how?
    By cosmocanuck in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 29 Jun 2010, 07:17 PM
  2. How can I change the maxlength in an attrib read only text box?
    By garyh357 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Oct 2009, 11:23 PM
  3. text hard to read
    By stalb33 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Nov 2008, 02:44 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