Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: need help with side boxes

    Hi

    Thanks for this

    I will look at it now and get back
    Zen Version: v1.3.8a, cPanel Version: 11.16.0-RELEASE, Apache version: 2.0.61, PHP version: 5.2.4, MySQL version: 5.0.27-standard, Operating system: Linux

  2. #2
    Join Date
    Nov 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: need help with side boxes

    Hi


    I hade 30px set in more than 1 place (now removed)
    That worked on some but not on:Featured [more]

    Reviews [more]

    Specials [more]


    how can I sort these?
    Zen Version: v1.3.8a, cPanel Version: 11.16.0-RELEASE, Apache version: 2.0.61, PHP version: 5.2.4, MySQL version: 5.0.27-standard, Operating system: Linux

  3. #3
    Join Date
    Nov 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: need help with side boxes

    Hi

    If it helps this is my tpl_box_default_right.php:

    Code:
    <?php
    /**
     * Common Template - tpl_box_default_right.php
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_box_default_right.php 2975 2006-02-05 19:33:51Z birdbrain $
     */
    
    // choose box images based on box position
      if ($title_link) {
        $title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
      }
    //
    ?>
    <!--// bof: <?php echo $box_id; ?> //-->
    <div class="xhsnazzy" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width: <?php echo $column_width; ?>">
    <b class="xhtop"><b class="xhb1"></b><b class="xhb2"></b><b class="xhb3"></b><b class="xhb4"></b></b>
    <h3 class="rightBoxHeading" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3>
    <b class="xhbottom"><b class="xhb4"></b><b class="xhb3"></b><b class="xhb2"></b><b class="xhb1"></b></b>
    </div>
     
    <div class="xsnazzy" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width: <?php echo $column_width; ?>">
                         <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
                         <div class="xboxcontent">
    <?php echo $content; ?>
    <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
    </div>
    </div>
    <!--// eof: <?php echo $box_id; ?> //-->

    also from the above can you see why all the left colum looks to be padded out more than the right colum
    Last edited by West One; 18 Jun 2008 at 02:15 AM.
    Zen Version: v1.3.8a, cPanel Version: 11.16.0-RELEASE, Apache version: 2.0.61, PHP version: 5.2.4, MySQL version: 5.0.27-standard, Operating system: Linux

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

    Default Re: need help with side boxes

    tpl_box_default_right.php has nothing to do with the xxx [more]. Those are links, and are affected twice by this declaration:
    Code:
    /*sideboxes*/
    .columnLeft {}
    
    h3.leftBoxHeading, h3.leftBoxHeading a,
    h3.rightBoxHeading, h3.rightBoxHeading a {
    	font-size: 13px;
    	color: #5f6601;
    	text-align: left;
    	padding-left: 30px;
    	font-weight: bold;
    	}
    Make it separate:
    Code:
    /*sideboxes*/
    .columnLeft {}
    
    h3.leftBoxHeading, h3.leftBoxHeading a,
    h3.rightBoxHeading, h3.rightBoxHeading a {
    	font-size: 13px;
    	color: #5f6601;
    	text-align: left;
    	font-weight: bold;
    	}
    h3.leftBoxHeading,
    h3.rightBoxHeading {
    	padding-left: 30px;
    	}
    If you think the left column is padded more than the right, I'd say it is an optical illusion. I believe they are equal in reality.
    Last edited by gjh42; 18 Jun 2008 at 02:45 AM.

  5. #5
    Join Date
    Nov 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: need help with side boxes

    Quote Originally Posted by gjh42 View Post
    tpl_box_default_right.php has nothing to do with the xxx [more]. Those are links, and are affected twice by this declaration:
    Code:
    /*sideboxes*/
    .columnLeft {}
    
    h3.leftBoxHeading, h3.leftBoxHeading a,
    h3.rightBoxHeading, h3.rightBoxHeading a {
        font-size: 13px;
        color: #5f6601;
        text-align: left;
        padding-left: 30px;
        font-weight: bold;
        }
    Make it separate:
    Code:
    /*sideboxes*/
    .columnLeft {}
    
    h3.leftBoxHeading, h3.leftBoxHeading a,
    h3.rightBoxHeading, h3.rightBoxHeading a {
        font-size: 13px;
        color: #5f6601;
        text-align: left;
        font-weight: bold;
        }
    h3.leftBoxHeading,
    h3.rightBoxHeading {
        padding-left: 30px;
        }
    Hi

    Thanks it worked

    your the BEST
    Zen Version: v1.3.8a, cPanel Version: 11.16.0-RELEASE, Apache version: 2.0.61, PHP version: 5.2.4, MySQL version: 5.0.27-standard, Operating system: Linux

  6. #6
    Join Date
    Nov 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: need help with side boxes

    Hi

    "optical illusion" yes or two much time on the pc.

    as it look like you now a lot about css is it pos to fade a color from top to bottom? ie with out haveing to add loads of div?
    Zen Version: v1.3.8a, cPanel Version: 11.16.0-RELEASE, Apache version: 2.0.61, PHP version: 5.2.4, MySQL version: 5.0.27-standard, Operating system: Linux

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

    Default Re: need help with side boxes

    You can make a "fade" image, say 1000px by 5px, and use it as the background for the element you want to fade. If the fade is top to bottom, specify
    background-repeat: repeat-x;
    and the strip will repeat for the whole width of the element.

    CSS3 is supposed to have the ablity to have lots of fancy fade effects without loading images, but it will be a while before those are safe to use in the real world.

  8. #8
    Join Date
    Nov 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: need help with side boxes

    Thanks for all your help.

    all I need to do now is to get the biff box and header colors to be alternate color.
    Zen Version: v1.3.8a, cPanel Version: 11.16.0-RELEASE, Apache version: 2.0.61, PHP version: 5.2.4, MySQL version: 5.0.27-standard, Operating system: Linux

  9. #9
    Join Date
    Mar 2007
    Location
    California
    Posts
    30
    Plugin Contributions
    0

    Default Re: need help with side boxes

    I second that! Glenn is a CSS wizard and extremely helpful!!!







    Quote Originally Posted by West One View Post
    Hi

    Thanks it worked

    your the BEST

 

 

Similar Threads

  1. still need help with side by side product name/price tag in producting listing
    By hangman21 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Aug 2010, 06:33 AM
  2. Need help changing background width in side boxes
    By strugglingnovice in forum Addon Templates
    Replies: 1
    Last Post: 22 Jun 2010, 09:32 PM
  3. Newbie help please with side boxes
    By rapidrc in forum Basic Configuration
    Replies: 1
    Last Post: 13 Jan 2009, 01:44 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