Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    80
    Plugin Contributions
    0

    Default Adding a space in between sidebox entries

    in my main sidebox with the categories, id like to create a blank line. all the entries are close together and i would like one to stand out. a blank line would do this nicely. is this possible? couldnt find anything under the search. probably searching the wrong words.

    thanks again,
    M

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Adding a space in between sidebox entries

    Make a copy of template_default/sideboxes/tpl_categories.php in your customer template. Open it in your favourite editor and you will find instructions for what you want to do in lines 16-18 and example code ready to edit in lines 19-21.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2005
    Posts
    80
    Plugin Contributions
    0

    Default Re: Adding a space in between sidebox entries

    understood. however im new to css. how do i add a "new line" or <BR> in the class definition?

  4. #4
    Join Date
    Jun 2005
    Posts
    80
    Plugin Contributions
    0

    Default Re: Adding a space in between sidebox entries

    and im totally not understanding how to do this either. the instructions in the comments i mean. they seem pretty technical.

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Adding a space in between sidebox entries

    // to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
    // uncomment the select below and set the cPath=3 to the cPath= your_categories_id
    // many variations of this can be done
    // case ($box_categories_array[$i]['path'] == 'cPath=3'):
    // $new_style = 'category-holiday';
    // break;

    Let's break it down.

    If it doesn't already exist, create a new directory in YOUR_TEMPLATE called sideboxes and copy template_default/sideboxes/tpl_categories.php into it.

    Open the new file ready for editing.

    In Admin > Categories/Products where you created the category you want to highlight, look in the left hand column and you will find the categories_id that will replace the number 3 in the first red line above.

    Decide on a descriptive word for this special category and use it instead of holiday in the second red line above (and the CSS that I have written for you below).

    Then remove the // at the beginning of each of the red lines.

    Save and upload to your site.

    Open your stylesheet and add the following at the bottom:
    .category-holiday {
    padding: 5px 0;
    color: green;
    }
    This will add 5px of space above and below your special category and turn it green. There is no need for any <br /> tags.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Jun 2005
    Posts
    80
    Plugin Contributions
    0

    Default Re: Adding a space in between sidebox entries

    ok getting closer. but still not working.

    first thx!

    ok. ive edited the tpl_categories.php file properly (the override one). it now is uncommented, has the right category id and name of the class which i called "category-designs"

    i think my problem is in the stylesheet.

    I put your code at the bottom of the override stylesheet. but i didnt know which one to put it in.

    stylesheet.css
    stylesheet_original.css
    stylesheet_new.css

    then i tried putting it in them all and didnt get anything. can i ask you which stylesheet to put the code in?

    oh fyi, i modified your code. the class is called category-designs and not holiday.

    many many thx.
    m

 

 

Similar Threads

  1. space between items in sidebox
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Nov 2010, 09:52 AM
  2. Adding space between categories
    By Terrill_Taylor in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 May 2008, 05:51 AM
  3. Adding space in between items
    By cowgirl32 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 25 Jul 2007, 03:23 AM
  4. space between text in sidebox
    By aussiewench in forum General Questions
    Replies: 3
    Last Post: 3 Oct 2006, 09:33 AM

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