Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default How do I put boxes around my category images?

    Hi

    I would like to have boxes around the category images on my homepage. Searched the forums for an answer but no luck. Can anyone help? Do I need to download an add-on or is there something I can do in css?

    Thanks

    Matt

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I put boxes around my category images?

    In your stylesheet add the rule:

    Code:
    #indexHomeBody .categoryListBoxContents img{
    border:2px solid red;
    }
    Obviously change the thickness and the color to whatever you want.

  3. #3
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: How do I put boxes around my category images?

    Thanks.

    But not sure exactly where in the stylesheet I should add this. Also for a certain colour can i use a hex colour number such as ffffcc.

    Thanks a lot.

    Matt

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I put boxes around my category images?

    That rule you could put pretty much anywhere in the stylesheet! But at the bottom is always a good bet unless you can find something similar to group it with. (The order of the rules has a structure so if you can find it's correct place then all well and good. If not put it at the bottom.)

    The rule would look like this:




    Code:

    #indexHomeBody .categoryListBoxContents img{
    border:2px solid #ffffcc;
    }

  5. #5
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: How do I put boxes around my category images?

    Thanks so much for your help. Just one other query. How do I adjust the spacing between the category boxes. I would like to almost merge them together.

    Thanks

    Matt

  6. #6
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I put boxes around my category images?

    Well, the boxes are cells in a table so you need to adjust how many cells you have in each row.

    admin >> configuration >> maximum values >> Categories To List Per Row

  7. #7
    Join Date
    Jan 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: How do I put boxes around my category images?

    Thanks for this it was just what I wanted too. But I would also like the box around my sub categories is this possible.

    Thank you

 

 

Similar Threads

  1. Boxes around category images
    By Matt Smith in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Sep 2009, 08:19 AM
  2. How to put border around category pictures for frontpage display
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Aug 2009, 01:49 AM
  3. How do I put a box around this?
    By Best Price Accessori in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 9 Jan 2009, 08:07 PM
  4. How Do I Put A Border Around Product Images?
    By Drewster in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Oct 2008, 12:42 AM
  5. boxes around images
    By wseyller in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 15 Jan 2007, 08:56 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