Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2007
    Posts
    63
    Plugin Contributions
    0

    Default Can I add a "HR" horizontal rule inside my sideboxes?

    I just want to add a HR (horizontal rule) inside one of my sideboxes "more information" ... is there a simple way to complete this?

    thanks!

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

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    The simplest way is not to change code in a PHP file, but to add a border-bottom or border-top to an element in the sidebox. This can be done in your stylesheet.

    A link to see your particular site and where you want the divider will let us help you.

  3. #3
    Join Date
    Mar 2009
    Location
    Peterborough UK
    Posts
    336
    Plugin Contributions
    0

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    Hi Glen
    Ive been messing around with the css for sometime now trying to add a border bottom but i just dont get the desired affect.

    The only time the border bottom shows is if i use this as the rule

    border-bottom:solid;

    However the width does not fill the category container width.

    I tried adding the border-bottom-width: also however this does not work.

    Im not sure if i am placing the code in the correct location- ive tried it on a few locations and the only location i can get it to work in is

    /* categories box parent and child categories */
    A.category-top, A.category-top:visited {
    color: #000000;
    text-decoration: none;
    }
    I would also like to add a hover affect and am hoping that the hover affect fill fill the box between 1 category name and another name.

    Not sure if the HR rule will be the best one for this - maybe a block layout would work better.

    The website is in my sig ravsappliances

    I have also changed the font so that it appears bold however i only want the bold text to appear in the centre boxes and not the sideboxes.

    I did try and do this before however it affected the actual product page also so i removed the rule and added it here

    /*The main content classes*/
    #contentColumnMain, #navColumnOne, #navColumnTwo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .alert {
    vertical-align: top;
    font-weight:bold;
    }

    I tried to create a separate rule for the
    .centerBoxContents,
    .centerBoxContentsSpecials,
    .centerBoxContentsFeatured,
    .centerBoxContentsNew,
    .centerBoxContentsAlsoPurch,

    however i must have done it wrong as it didnt make a difference or it was not supposed to be done this way.

    If there is any advise that you can give as to get this done then i would be grateful

    thanks

    Abs

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

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    I tried to create a separate rule for the
    .centerBoxContents,
    .centerBoxContentsSpecials,
    .centerBoxContentsFeatured,
    .centerBoxContentsNew,
    .centerBoxContentsAlsoPurch,

    If you left the comma at the end of this list and before the { when making the rule, the whole thing will be invalid.

    For the divider and background effects you want, a block layout will be needed. You can use
    Code:
    #categories a {
        display: block;
        border-bottom: 1px solid #aabbcc;
        background-color: #ddeeff;
        }
    #categories a:hover {
        background-color: #ffaa00;
        }
    You will then need to edit /includes/templates/your_template/sideboxes/tpl_categories.php and remove the <br /> at the ends of the category and links output code.

  5. #5
    Join Date
    Mar 2009
    Location
    Peterborough UK
    Posts
    336
    Plugin Contributions
    0

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    Hi Glen
    Thanks alot for the reply - The block layout worked great - just need to try and play with the coding for the bold font.

    One thing I was wondering is if its possible to make the block thicker in appearance.

    You can see an example on my test site buycheaplcdtvs.co.uk

    The block affect is deff what im looking for but I would like to have a boarder around the actual blocks - top-bottom - left and right and I would also like them to be thicker as in the height larger.

    Do you know what I can add to the css to get this done

    thanks

  6. #6
    Join Date
    Mar 2009
    Location
    Peterborough UK
    Posts
    336
    Plugin Contributions
    0

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    Hi
    I have managed to play with the css and get it to the way i would like the height and the boarders.

    Heres the css code that i used- hope its ok

    #categories a {
    display: block;
    border-bottom: 1px solid #aabbcc;
    border-top: 1px solid #aabbcc;
    border-left: 1px solid #aabbcc;
    border-right: 1px solid #aabbcc;
    background-color: #ddeeff;
    padding-top: 4px;
    padding-bottom: 4px;
    }
    #categories a:hover {
    background-color: #ffaa00;
    }

    I am also trying to use the snazzy corners affect which you can see on the left sidebox containers - I havnt managed to get the sidebox header sorted yet as ive started a new thread on this however is there any way that I can get the block boarder to appear rounded.

    thanks

  7. #7
    Join Date
    Mar 2009
    Location
    Peterborough UK
    Posts
    336
    Plugin Contributions
    0

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    The coding for the bold text worked fine - thanks for mentioning what I was doing wrong. If you want to see the changes then you can see them on ravsapliances

  8. #8
    Join Date
    Nov 2009
    Location
    england
    Posts
    36
    Plugin Contributions
    0

    Default Re: Can I add a "HR" horizontal rule inside my sideboxes?

    Quote Originally Posted by abs007 View Post
    Hi
    I have managed to play with the css and get it to the way i would like the height and the boarders.

    Heres the css code that i used- hope its ok

    #categories a {
    display: block;
    border-bottom: 1px solid #aabbcc;
    border-top: 1px solid #aabbcc;
    border-left: 1px solid #aabbcc;
    border-right: 1px solid #aabbcc;
    background-color: #ddeeff;
    padding-top: 4px;
    padding-bottom: 4px;
    }
    #categories a:hover {
    background-color: #ffaa00;
    }

    I am also trying to use the snazzy corners affect which you can see on the left sidebox containers - I havnt managed to get the sidebox header sorted yet as ive started a new thread on this however is there any way that I can get the block boarder to appear rounded.

    thanks
    Many thanks for your contribution. This has given me a better catagory layout look. Best wishes. Claire

 

 

Similar Threads

  1. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  2. Can I make all "add: 0" input boxes on product pages to "more info..."?
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Aug 2009, 06:05 PM
  3. How can I rename the "add to cart" to "checkout now"?
    By InterSign in forum General Questions
    Replies: 5
    Last Post: 6 May 2008, 08:45 PM
  4. Help! "Price" and "Add to cart" in Horizontal position?
    By biojohn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 5 Dec 2007, 11:04 AM
  5. Inside the "Categories" box it says "New Products" and "All Products"...
    By john9 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2007, 07:55 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR