Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default sidebox headers - how to alter height?

    Hi - I have tried a few threads looking for this but no luck.

    How can I increase the height of the sidebox headers, e.g. the "categories" header so that I can use larger font size to make that sidebox stand out - I have tried many variations in CSS Stylesheet with no luck.

    Also want to be able to change the font style to upper case for sidebox headers - where can I do that?

    cheers,
    Mike

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

    Default Re: sidebox headers - how to alter height?

    1. Assuming the padding remains the same, simply increasing the font size should increase the size of the header. If it doesn't on your site, this unclosed element is probably why:


    .leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
    margin: 0em;
    background-color: #AFAFAF;
    background-image:
    padding: 1.5em 0.2em;
    }


    2. text-transform : uppercase; though it might make more sense to change the sidebox name to uppercase in english.php.
    Last edited by stevesh; 9 Aug 2012 at 11:05 AM.

  3. #3
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default Re: sidebox headers - how to alter height?

    Quote Originally Posted by stevesh View Post
    1. Assuming the padding remains the same, simply increasing the font size should increase the size of the header. If it doesn't on your site, this unclosed element is probably why:


    .leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
    margin: 0em;
    background-color: #AFAFAF;
    background-image:
    padding: 1.5em 0.2em;
    }


    2. text-transform : uppercase; though it might make more sense to change the sidebox name to uppercase in english.php.
    Many thanks Steve - works a treat. Question: in the case of a Background Color AND Background Image element which one takes precedence? If I wanted to replace the background color with an image in the case above do I delete the colour and insert the image? When inserting the image do I enter the whole url or truncate it as is shown in this example and is the truncation always two dots;
    #navEZPagesTop {
    background-color: #AFAFAF;
    background-image: url(../images/border_tile_sideboxes_155.gif);
    font-size: 0.95em;
    font-weight: bold;
    margin: 0em;
    padding: 0.5em;
    }

    in this case above the background colour is taking precedence, is that always the case?

    cheers and thanks again,
    Mike

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

    Default Re: sidebox headers - how to alter height?

    In a stock Zencart installation using the Classic template, that rule looks like this:

    #navEZPagesTop {
    background-color: #abbbd3;
    background-image: url(../images/tile_back.gif);
    font-size: 0.95em;
    font-weight: bold;
    margin: 0em;
    padding: 0.5em;
    }

    and the image overrides the background color, so I don't know what's different about yours, unless the image in question isn't where you're telling Zencart it is. That path with the two dots is correct, assuming the image is in the 'images' folder under your custom template, and not in /includes/images.

  5. #5
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default Re: sidebox headers - how to alter height?

    Quote Originally Posted by stevesh View Post
    In a stock Zencart installation using the Classic template, that rule looks like this:

    #navEZPagesTop {
    background-color: #abbbd3;
    background-image: url(../images/tile_back.gif);
    font-size: 0.95em;
    font-weight: bold;
    margin: 0em;
    padding: 0.5em;
    }

    and the image overrides the background color, so I don't know what's different about yours, unless the image in question isn't where you're telling Zencart it is. That path with the two dots is correct, assuming the image is in the 'images' folder under your custom template, and not in /includes/images.
    Thanks again Steve - maybe the image is in the wrong place, I will check it.

    In respect to altering the height of the header bar - by inserting * padding-bottom: 5px;padding-top: 5px; * into the font element it increases the padding top and bottom of the text so as to increase the height of the bar and centralize the text at the same time. Increasing font size works but text is to extreme of bar and looks a bit odd.

    Just to clarify one point - if using an image can I insert the url as * url (../images/great-image.gif); * instead of having to enter the complete path as in http://www.mydomain/images/great-image.gif ??

    cheers,
    Mike

    p.s. just wondered if you could offer assistance also to my other post regarding adding a center box into the Products pages - my current big hurdle - Thanks
    Last edited by shags38; 10 Aug 2012 at 09:15 PM.

 

 

Similar Threads

  1. EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?
    By hockey2112 in forum Addon Sideboxes
    Replies: 8
    Last Post: 22 Jun 2010, 06:28 PM
  2. How to replace sidebox text headers with images?
    By SimplyDelightful in forum Addon Sideboxes
    Replies: 1
    Last Post: 7 Nov 2009, 02:17 AM
  3. seems to have lost some formatting on new template, and how to change sidebox headers
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2008, 06:39 PM
  4. how do I standardize the sidebox heading bar height?
    By haostaff in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Dec 2007, 07:20 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