Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Darn break lines!


Guest

Recommended Posts

There is a space inbetween the Navigation and my tabs. Does anyone know how to remove this? Heres the important part of my header code:

 

Can view it http://advancedvitamin.com/catalog/default.php

 

Code is here:

 

 	 <a href="http://advancedvitamin.com/catalog/default.php">





	 <IMG SRC="images/header_07.gif" WIDTH=89 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/vitamins.php"><IMG SRC="images/header_08.gif" WIDTH=80 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/askthedoc.php"><IMG SRC="images/header_09.gif" WIDTH=102 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/company.php"><IMG SRC="images/header_10.gif" WIDTH=79 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/account.php"><IMG SRC="images/header_11.gif" WIDTH=91 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/shopping_cart.php"><IMG SRC="images/header_12.gif" WIDTH=103 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/checkout_shipping.php"><IMG SRC="images/header_13.gif" WIDTH=91 HEIGHT=30 ALT="" border="0"></a>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="headerNavigation">

   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

   <td align="right" class="headerNavigation"><?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>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 </tr>

</table>

<?php

 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="headerError">

   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

 </tr>

</table>

<?php

 }



 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>



 <tr class="headerInfo">

   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

 </tr>

</table>

<?php

 }

?>

 

Thank you,

 

- Gian

Link to comment
Share on other sites

The tabs are not in a table -- Just lined up one after another. I did check all cellpadding and cellspacing and their all set to "0". :(

 

In the table that contains the header (which it doesn't look like you posted), is there a cellpadding (or spacing) set?  That might be it.
Link to comment
Share on other sites

I placed all the tabs in 1 table, and its still showing that space. Should I try to make a new cell for each tab?

 

Heres the new full coding to header.php

 

Thanks,

 

- Gian

 

<?php

/*

 $Id: header.php,v 1.40 2003/03/14 03:34:26 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



// check if the 'install' directory exists, and warn of its existence

 if (WARN_INSTALL_EXISTENCE == 'true') {

   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

     tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);

   }

 }



// check if the configure.php file is writeable

 if (WARN_CONFIG_WRITEABLE == 'true') {

   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

     tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);

   }

 }



// check if the session folder is writeable

 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

   if (STORE_SESSIONS == '') {

     if (!is_dir(tep_session_save_path())) {

       tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);

     } elseif (!is_writeable(tep_session_save_path())) {

       tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);

     }

   }

 }



// check session.auto_start is disabled

 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

   if (ini_get('session.auto_start') == '1') {

     tep_output_warning(WARNING_SESSION_AUTO_START);

   }

 }



 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

   if (!is_dir(DIR_FS_DOWNLOAD)) {

     tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);

   }

 }

?>





<center><TABLE WIDTH=635 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="0">

<TR>

 <TD width="68" height="1">

	 <IMG SRC="images/header_01.gif" WIDTH=68 HEIGHT=55 ALT=""></TD>

 <TD COLSPAN=3 width="142" height="1">

	 <a href="http://advancedvitamin.com/catalog/default.php">

	 <IMG SRC="images/header_02.gif" WIDTH=142 HEIGHT=55 ALT="" border="0"></a></TD>

 <TD COLSPAN=2 width="92" height="1">

	 <a href="http://advancedvitamin.com/catalog/default.php">

	 <IMG SRC="images/header_03.gif" WIDTH=90 HEIGHT=55 ALT="" border="0"></a></TD>

 <TD COLSPAN=2 width="59" height="1">

	 <IMG SRC="images/header_04.gif" WIDTH=62 HEIGHT=55 ALT=""></TD>

 <TD COLSPAN=2 width="117" height="1">

	 <a href="http://advancedvitamin.com/catalog/mbg.php">

	 <img border="0" src="images/headerdis.gif" width="235" height="44" border="0"></a></TD>



</TR>

<TR>

 <TD COLSPAN=2 width="89" height="5">

	 </TD>

 <TD width="80" height="5">

	 </TD>

 <TD COLSPAN=2 width="102" height="5">

	 </TD>

 <TD COLSPAN=2 width="79" height="5">

	 </TD>

 <TD COLSPAN=2 width="91" height="5">

	 </TD>

 <TD COLSPAN=2 width="103" height="5">

	 </TD>

 <TD width="91" height="5">

	 </TD>

</TR>

</TABLE></center>









           <center><table border="0" cellpadding="0" cellspacing="0" width="70%">



  <tr><center>

<td width="100%">





	 



	 <a href="http://advancedvitamin.com/catalog/default.php">





	 <center><IMG SRC="images/header_07.gif" WIDTH=89 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/vitamins.php"><IMG SRC="images/header_08.gif" WIDTH=80 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/askthedoc.php"><IMG SRC="images/header_09.gif" WIDTH=102 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/company.php"><IMG SRC="images/header_10.gif" WIDTH=79 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/account.php"><IMG SRC="images/header_11.gif" WIDTH=91 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/shopping_cart.php"><IMG SRC="images/header_12.gif" WIDTH=103 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/checkout_shipping.php"><IMG SRC="images/header_13.gif" WIDTH=91 HEIGHT=30 ALT="" border="0"></a>

   

 </td></tr>

</table></center>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="headerNavigation">

   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

   <td align="right" class="headerNavigation"><?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>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 </tr>

</table>

<?php

 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="headerError">

   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

 </tr>

</table>

<?php

 }



 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>



 <tr class="headerInfo">

   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

 </tr>

</table>

<?php

 }

?>

Link to comment
Share on other sites

The <center> tag gives spacing.

 

Put an align="center" in your <table> tags and remove the <center> and you also have some <center> tags that appear to be out of place:

<center><table border="0" cellpadding="0" cellspacing="0" width="70%"> 



  <tr><center> 

<td width="100%">

Link to comment
Share on other sites

K, removed all <center> and </center> tags and inserted the align="center" as you said. Still no luck :(

 

<?php

/*

 $Id: header.php,v 1.40 2003/03/14 03:34:26 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



// check if the 'install' directory exists, and warn of its existence

 if (WARN_INSTALL_EXISTENCE == 'true') {

   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

     tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);

   }

 }



// check if the configure.php file is writeable

 if (WARN_CONFIG_WRITEABLE == 'true') {

   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

     tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);

   }

 }



// check if the session folder is writeable

 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

   if (STORE_SESSIONS == '') {

     if (!is_dir(tep_session_save_path())) {

       tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);

     } elseif (!is_writeable(tep_session_save_path())) {

       tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);

     }

   }

 }



// check session.auto_start is disabled

 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

   if (ini_get('session.auto_start') == '1') {

     tep_output_warning(WARNING_SESSION_AUTO_START);

   }

 }



 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

   if (!is_dir(DIR_FS_DOWNLOAD)) {

     tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);

   }

 }

?>





<TABLE WIDTH=635 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="0" align="center">

<TR>

 <TD width="68" height="1">

	 <IMG SRC="images/header_01.gif" WIDTH=68 HEIGHT=55 ALT=""></TD>

 <TD COLSPAN=3 width="142" height="1">

	 <a href="http://advancedvitamin.com/catalog/default.php">

	 <IMG SRC="images/header_02.gif" WIDTH=142 HEIGHT=55 ALT="" border="0"></a></TD>

 <TD COLSPAN=2 width="92" height="1">

	 <a href="http://advancedvitamin.com/catalog/default.php">

	 <IMG SRC="images/header_03.gif" WIDTH=90 HEIGHT=55 ALT="" border="0"></a></TD>

 <TD COLSPAN=2 width="59" height="1">

	 <IMG SRC="images/header_04.gif" WIDTH=62 HEIGHT=55 ALT=""></TD>

 <TD COLSPAN=2 width="117" height="1">

	 <a href="http://advancedvitamin.com/catalog/mbg.php">

	 <img border="0" src="images/headerdis.gif" width="235" height="44" border="0"></a></TD>



</TR>

<TR>

 <TD COLSPAN=2 width="89" height="5">

	 </TD>

 <TD width="80" height="5">

	 </TD>

 <TD COLSPAN=2 width="102" height="5">

	 </TD>

 <TD COLSPAN=2 width="79" height="5">

	 </TD>

 <TD COLSPAN=2 width="91" height="5">

	 </TD>

 <TD COLSPAN=2 width="103" height="5">

	 </TD>

 <TD width="91" height="5">

	 </TD>

</TR>

</TABLE>









           <table border="0" cellpadding="0" cellspacing="0" width="70%" align="center">



  <tr>

<td width="100%">





	 



	 <a href="http://advancedvitamin.com/catalog/default.php">





	 <IMG SRC="images/header_07.gif" WIDTH=89 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/vitamins.php"><IMG SRC="images/header_08.gif" WIDTH=80 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/askthedoc.php"><IMG SRC="images/header_09.gif" WIDTH=102 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/company.php"><IMG SRC="images/header_10.gif" WIDTH=79 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/account.php"><IMG SRC="images/header_11.gif" WIDTH=91 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/shopping_cart.php"><IMG SRC="images/header_12.gif" WIDTH=103 HEIGHT=30 ALT="" border="0"></a><a href="http://advancedvitamin.com/catalog/checkout_shipping.php"><IMG SRC="images/header_13.gif" WIDTH=91 HEIGHT=30 ALT="" border="0"></a>

   

 </td></tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="headerNavigation">

   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

   <td align="right" class="headerNavigation"><?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>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 </tr>

</table>

<?php

 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="headerError">

   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

 </tr>

</table>

<?php

 }



 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>



 <tr class="headerInfo">

   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

 </tr>

</table>

<?php

 }

?>

Link to comment
Share on other sites

Change this portion of the table ...

 

I took out the 70% and added the style ... you will need to trim your images to get rid of the little extra color on the sides:

<TABLE cellSpacing=0 cellPadding=0 align=center border=0>

 <TBODY>

 <TR>

   <TD class=headerNavigation width="100%"><A

     href="http://advancedvitamin.com/catalog/default.php"><IMG height=30

     alt="" src="osCommerce_files/header_07.gif" width=89 border=0></A><A

     href="http://advancedvitamin.com/catalog/vitamins.php"><IMG height=30

     alt="" src="osCommerce_files/header_08.gif" width=80 border=0></A><A

     href="http://advancedvitamin.com/catalog/askthedoc.php"><IMG height=30

     alt="" src="osCommerce_files/header_09.gif" width=102 border=0></A><A

     href="http://advancedvitamin.com/catalog/company.php"><IMG height=30

     alt="" src="osCommerce_files/header_10.gif" width=79 border=0></A><A

     href="http://advancedvitamin.com/catalog/account.php"><IMG height=30

     alt="" src="osCommerce_files/header_11.gif" width=91 border=0></A><A

     href="http://advancedvitamin.com/catalog/shopping_cart.php"><IMG height=30

     alt="" src="osCommerce_files/header_12.gif" width=103 border=0></A><A

     href="http://advancedvitamin.com/catalog/checkout_shipping.php"><IMG

     height=30 alt="" src="osCommerce_files/header_13.gif" width=91

     border=0></A> </TD></TR></TBODY></TABLE>

Link to comment
Share on other sites

Not a problem Gian ... had to fool with your page and images a bit to see what was up then found the overlap due to the images themselves and color issue on the tags.

 

Once that was cleaned up ... then it seemed fine.

 

Happy to hear you are up an running again! :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...