osCmax v2.5 User Manual
Results 1 to 7 of 7

Spacing between left column, mainpage and header

This is a discussion on Spacing between left column, mainpage and header within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi. Was hoping someone could point me in the right direction. I am trying to remove the padding or spacing ...

      
  1. #1
    New Member
    Join Date
    Jun 2009
    Posts
    11
    Rep Power
    0


    Default Spacing between left column, mainpage and header

    Hi.

    Was hoping someone could point me in the right direction. I am trying to remove the padding or spacing between the left column and the main body. And remove the spacing between the header and the main page body. I am using Cobalt template.

    Thank you!!

    Mothballs in the Attic :

  2. #2
    New Member
    Join Date
    Jun 2009
    Posts
    11
    Rep Power
    0


    Default Re: Spacing between left column, mainpage and header

    I have been through the stylesheet many times, I have looked in main_page.tpl, mainpage.php, etc.

    Can anyone tell me where the padding is coming from around main body? I need to eliminate this space so my banner and left column blend into main body w/ no spacing.

    It's got to be simple. Just can't find it.

    Thanks!!

  3. #3
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Spacing between left column, mainpage and header

    td#contentLT
    padding:10px 12px;
    }

    Is padding the cell.

    Best thing to do is download Firefox and an addin called Firebug - This addin will allow you to "inspect" you page and see which bits are using which bits of the css file and html code. It makes life much easier!!

    Hope this helps.
    pgmarshall
    _______________________________

  4. #4
    New Member
    Join Date
    Jun 2009
    Posts
    11
    Rep Power
    0


    Default Re: Spacing between left column, mainpage and header

    Ok great! Fire Bug is awesome - will save me loads of time in the future. I found several things in those spaces. I have one item left - two images at http://collectibles-antiques.net/vin...ixel_trans.gif that are spacing the header and main body.

    I have deleted them and searched for their reference but can't find it. It is not in mainpage.php or index.php or main_page.tpl.php (as far as I can tell). Stylesheet is here - http://collectibles-antiques.net/vin...stylesheet.css.

    Thanks again if you can offer your time and expertise!

    Patrick

  5. #5
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Spacing between left column, mainpage and header

    Patrick,

    osCmax uses little spacing transparent pixels all over the place - so much so that there is a php function to call it ... look in your main_page.tpl.php for code that looks like this.

    Code:
               
    <tr>
       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td>
    </tr>
    Basically this puts in the line

    Code:
               
    <tr>
      <td colspan="2"><img src="<your domain>/images/pixel_trans.gif" border="0" alt="" width="100%" height="5"></td>
    </tr>
    Find this and remove the everything between <tr> and </tr> and your space should go.

    Hope this helps.

    By the way nice graphics on your website.

    Regards,
    Last edited by pgmarshall; 07-01-2009 at 11:01 AM.
    pgmarshall
    _______________________________

  6. #6
    New Member
    Join Date
    Jun 2009
    Posts
    11
    Rep Power
    0


    Default Re: Spacing between left column, mainpage and header

    Okay, that is my problem. I can see the spacers when I view page source, but I can't find it in the site.

    I can find no reference to the function or the output. Not sure if I'm blind or what.

    Thanks!!



    main_page.tpl.php

    PHP Code:
    <?php require(DIR_WS_INCLUDES 'counter.php'); ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>">
    <?php require(DIR_WS_INCLUDES 'meta_tags.php'); ?>
    <title><?php echo META_TAG_TITLE?></title>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER HTTP_SERVER) . DIR_WS_CATALOG?>">
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" >
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" >
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','print.css')); // BTSv1.5 ?>" media="print">
    <?php if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT basename($javascript))) { require(DIR_WS_JAVASCRIPT basename($javascript)); } ?>
    </head>
    <body>
    <!--
    "Cobalt Blue template for osC created by Rhea Anthony(Vger)
    008/08/2005
    -->
    <!-- warnings //-->
    <?php require(DIR_WS_INCLUDES 'warnings.php'); ?>
    <!-- warning_eof //-->
    <?php
    // include i.e. template switcher in every template
    if(bts_select('common''common_top.php')) include (bts_select('common''common_top.php')); // BTSv1.5
    ?>
    <div id="pageWrapper">
    <table id="mainLayoutLT" cellpadding="0" cellspacing="0" border="0" summary="site layout table">
      <tr>
        <td colspan="3" id="pageHeaderLT" cellpadding="0" cellspacing="0" border="0">
          <div class="logoLT"><?php echo '<a href="' tep_href_link(FILENAME_DEFAULT) . '">' tep_image(DIR_WS_IMAGES 'logo3.jpg''Collectibles, Antiques and Vintage Jewelery') . '</a>'?></div>      </td>
      </tr>
      <tr>
        <td id="navBarTopLT" cellpadding="0" cellspacing="0" colspan="3" border="0"><div class="navLeftLT"><?php echo $breadcrumb->trail(' &raquo; '); ?></div><div class="navRightLT"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF'''SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF?></a> &nbsp;|&nbsp; <?php ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT'''SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT?></a></div></td>
      </tr>
      <tr>
        <td class="columnLT" id="columnLeftLT" cellpadding="0" cellspacing="0" border="0"><?php require(bts_select('column''column_left.php')); // BTSv1.5 ?></td>
        <td id="contentLT" cellpadding="0" cellspacing="0" border="0"><?php
            
    require (bts_select ('content')); // BTSv1.5
    ?></td>
        <td class="columnLT" id="columnRightLT" cellpadding="0" cellspacing="0" border="0"><?php require(bts_select('column''column_right.php')); // BTSv1.5 ?></td>
      </tr>
      <tr>
        <td id="navBarBottomLT" border="0" colspan="3" cellpadding="0" cellspacing="0"><div class="navLeftLT"><?php echo strftime(DATE_FORMAT_LONG); ?></div><div class="navRightLT"><?php echo $counter_now ' ' FOOTER_TEXT_REQUESTS_SINCE ' ' $counter_startdate_formatted?></div></td>
      </tr>
      <tr>
        <td colspan="3" class="footerLT" cellpadding="0" cellspacing="0" border="0"><div id="copyRightLT"><?php
    /*
      The following copyright announcement can only be
      appropriately modified or removed if the layout of
      the site theme has been modified to distinguish
      itself from the default osCommerce-copyrighted
      theme.

      For more information please read the following
      Frequently Asked Questions entry on the osCommerce
      support site:

      osCommerce: Copyright Policy

      Please leave this comment intact together with the
      following copyright announcement.
    */

    //  echo FOOTER_TEXT_BODY
    ?><a href="http://collectibles-antiques.net">Copyright © 2009 Mothballs in the Attic</a><br>
        </div>
    <?php
      
    if ($banner tep_banner_exists('dynamic''468x50')) {
    ?>
    <div><?php echo tep_display_banner('static'$banner); ?></div>
    <?php ?>    </td>
      </tr>
    </table>
    </div>
    </body>
    </html>
    Last edited by mothballs; 07-01-2009 at 03:22 PM. Reason: Wrong php page. Updated.

  7. #7
    New Member
    Join Date
    Jun 2009
    Posts
    11
    Rep Power
    0


    Default Re: Spacing between left column, mainpage and header

    Well, I just found it!

    /fallback/index_default.tpl.php

    This is the missing link I have been searching for! I kept looking at wrong index file /Cobalt/index.php.

    Thank you for everything!! I'm sure I'll be back real soon with more questions for the experts.

    Patrick

Similar Threads

  1. Left and Right Column Control
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-26-2008, 11:13 PM
  2. Boxes and left column help please
    By countingsheep in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 08-31-2006, 03:20 PM
  3. Move Left Column Down
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-01-2006, 03:15 PM
  4. How To: have different right and left column widths
    By Kristine in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-03-2005, 09:53 PM
  5. Move all in rh column to left and remove RH column
    By jloyzaga in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-24-2004, 03:24 PM

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
  •