osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 06-30-2009, 01:35 PM
New Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
mothballs is on a distinguished road
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 :
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-01-2009, 02:59 AM
New Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
mothballs is on a distinguished road
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-01-2009, 05:42 AM
pgmarshall's Avatar
osCMax Development Team
 
Join Date: Feb 2009
Location: London
Posts: 949
Thanks: 59
Thanked 192 Times in 165 Posts
Rep Power: 11
pgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to behold
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
_______________________________
Test Site: www.cottonbarn.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to pgmarshall For This Useful Post:
mothballs (07-01-2009)
  #4  
Old 07-01-2009, 09:08 AM
New Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
mothballs is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-01-2009, 09:59 AM
pgmarshall's Avatar
osCMax Development Team
 
Join Date: Feb 2009
Location: London
Posts: 949
Thanks: 59
Thanked 192 Times in 165 Posts
Rep Power: 11
pgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to behold
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,
__________________
pgmarshall
_______________________________
Test Site: www.cottonbarn.info

Last edited by pgmarshall; 07-01-2009 at 11:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-01-2009, 03:03 PM
New Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
mothballs is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 07-01-2009, 04:32 PM
New Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
mothballs is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -8. The time now is 03:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design