Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Dec 2007
    Posts
    9
    Plugin Contributions
    0

    Default How to modify categories sidebox list

    I want to add some space between categories list items so that there would be some more space between links, but how to do this?
    I see that this list is made with <br> tags and <a> links
    I tried to change it in css with a{ margin-top:n px } and br {margin-top: n px} [this is only code fragment to give the idea], but with no success, so is there a way to modify this list with css and not go where php starts?

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

    Default Re: How to modify categories sidebox list

    You can address the categories links with
    a.category-top {}
    etc., and similar selectors. Look in view source to see what others you may want to change.

    Categories Dressing allows many other kinds of customizations to the categories if this CSS doesn't do everything you want.

  3. #3
    Join Date
    Dec 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: How to modify categories sidebox list

    I tried this selector.
    For example this code

    a.category-top{
    background-color: red;
    colorink;
    font-size: 19px;
    margin-top: 10px;
    }

    reacts only for background, color and size but margins stay fixed, this is maybe links can't have margins but if I add display: block it drops what is left after link to another line.

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

    Default Re: How to modify categories sidebox list

    The display: block; will have that effect if you do not remove a <br /> that is coded into tpl_categories.php (the <br /> is necessary for the ordinary categories arrangement).
    Inline elements do not react to margins.

    You may want to use Categories Dressing, as this is set up for block-type display already. You can turn off or not use any of its features you don't need.


    If you don't want the effects of block display, you might try adding
    line-height: 2em;
    to the declaration (adjust as required).
    Last edited by gjh42; 6 Dec 2007 at 09:33 PM.

  5. #5
    Join Date
    Dec 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: How to modify categories sidebox list

    Well then I'll try to look at this categories dressing tool.

  6. #6
    Join Date
    Sep 2007
    Location
    Somewhere in Southern Cal
    Posts
    330
    Plugin Contributions
    0

    Default Re: How to modify categories sidebox list

    You need to open your css file
    look for this
    #navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
    margin: auto;
    }
    and do this

    #navColumnTwoWrapper, #mainWrapper {
    margin: auto;
    }

    #navColumnOneWrapper{
    margin: your size here .px;
    }

    nomad

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

    Default Re: How to modify categories sidebox list

    Umm, what will that accomplish? (relevant to the OP)


    I just tested the line-height, and it does work in a stock categories box.
    Last edited by gjh42; 6 Dec 2007 at 09:47 PM.

  8. #8
    Join Date
    May 2006
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to modify categories sidebox list

    There is a nice mod for better styling your categories...

  9. #9
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: How to modify categories sidebox list

    Quote Originally Posted by digidiva-kathy View Post
    There is a nice mod for better styling your categories...
    I was just wondering if that still works with v1.37 as I need the mouseover effect it gives for a client.

    betty

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

    Default Re: How to modify categories sidebox list

    I don't know what particular mouseover effect you are wanting, but you don't need a whole mod (BetterCategories or Categories Dressing) to get hover effects.

    You can style things in your stylesheet like a.category-top:hover {color: #aabbcc; font-weight: bold; background-color: #112233; etc.}.

    What effect did you want?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How do I modify the Categories box?
    By arran in forum General Questions
    Replies: 3
    Last Post: 13 May 2011, 04:21 PM
  2. how do i modify product info in All Products list?
    By jadedev in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 May 2011, 02:10 PM
  3. How to modify order of categories
    By dd99 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 21 Jan 2009, 12:48 AM
  4. How can I modify the country list?
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Mar 2007, 12:48 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