Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    28
    Plugin Contributions
    0

    Default Category line spacing for double lines

    Hi there, i am using 1.3.8 and have been trundling through all of the posts here about line spacing.

    Now i can make each line spaced out by adding the line-height into my css, the only problem i get is that each line is spaced, and i have some categories that are on two lines.

    How do i put a space between each category? (at the bottom) so there is clear separation?

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

    Default Re: Category line spacing for double lines

    Quote Originally Posted by jhbs View Post
    Hi there, i am using 1.3.8 and have been trundling through all of the posts here about line spacing.

    Now i can make each line spaced out by adding the line-height into my css, the only problem i get is that each line is spaced, and i have some categories that are on two lines.

    How do i put a space between each category? (at the bottom) so there is clear separation?
    JH,
    Just add a blank category with no wording for the title and place the sort order just over the number of the category you want to leave a blank line under..

    You can widen the width of the left column...
    admin panel/ configuration/ layout settings

    1. there are two places where you will see column width: left boxes and the other is column witdth: left
    2. change both of them to match
    3. default is 150
    4. change both of them to 175

  3. #3
    Join Date
    Feb 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Category line spacing for double lines

    yeah i need to keep the category box the same width, but the blank category, brilliant!

    The only thing is that i just want to try and do it in the css / php as i dont want to confuse my client that will be using it! good fix for now!

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Category line spacing for double lines

    Jh,
    You are most welcome, glad I could zen your knowledge

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

    Default Re: Category line spacing for double lines

    The reason that you can't affect the spacing other than line-height is that the category links are inline elements. If you add to your stylesheet

    #categories a {display: block;}

    the categories will each fill the width of the box (visible if you give them a background-color) and be able to have a defined top or bottom margin.
    The inline elements are forced onto separate lines by a <br /> after each one, and making them block display will double the space. Unless you want this much spacing, you will want to edit /includes/templates/your_template/sideboxes/tpl_categories.php to eliminate the <br /> tags in a few places.

 

 

Similar Threads

  1. change line spacing in category list??
    By lrfowler in forum General Questions
    Replies: 13
    Last Post: 27 Feb 2012, 12:16 AM
  2. Product Category line spacing
    By lrfowler in forum General Questions
    Replies: 0
    Last Post: 24 Feb 2012, 06:19 AM
  3. Category Sidebox Links Single Line not Double
    By habsolutely in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 6 Sep 2011, 03:54 PM
  4. Contact Us page <p> tag uses double line spacing?
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jul 2010, 09:17 PM
  5. Double lines on Subcategory listing
    By stxmona in forum General Questions
    Replies: 4
    Last Post: 15 Aug 2009, 02:53 PM

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