Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2012
    Location
    Belfast, Ireland
    Posts
    27
    Plugin Contributions
    0

    Default Adding padding to the category links in sidebar

    Hello,
    I'm trying to add a little padding to the links in the category sidebar but I can't understand why it won't work! It seems that I can add padding left and right but not top and bottom.

    I notice that in the html these links are marked up as a table, has this got something to do with it? I can style the contact us and site map links further down fine, but not the category links.

    i've tried all sorts of things but can't add top or bottom padding to the links.

    here's a link to the site.
    (the yellow boxes are only there for myself, so that I can see what I'm targeting... i intend to turn them off.)

    Name:  screendump.jpg
Views: 149
Size:  39.3 KB

    Please help someone, this is driving me crackers!

    Thanks,
    Michael

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Adding padding to the category links in sidebar

    Here's one way:

    a.category-top {line-height: 2em;}

  3. #3
    Join Date
    Sep 2012
    Location
    Belfast, Ireland
    Posts
    27
    Plugin Contributions
    0

    Default Re: Adding padding to the category links in sidebar

    perfect!

    .....I've wasted half a day trying to do that, nearly went crazy!

    thanks again,
    Michael

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

    Default Re: Adding padding to the category links in sidebar

    Be aware that that will space out long multi-line category names the same as different category names. If you want to distinguish long names by keeping them together, you need some other styling or coding. There are mods like Categories Dressing that will facilitate that and much more, or you can make
    a.category-top {display: block;}
    and be able to control padding and margins precisely. There are other issues of spacing that arise when you do that, but they can be handled with the right CSS.

 

 

Similar Threads

  1. Remove one category from the Category sidebar?
    By ddye in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 Dec 2010, 05:44 PM
  2. Adding padding to the center box of main page
    By magazinehawk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2009, 03:22 PM
  3. adding the category links to a new front page
    By andy106 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 May 2008, 07:12 AM
  4. How to change the padding / margins of the catergory links
    By Cienwen in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 21 Dec 2007, 04:35 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