2johnsons Posted May 3, 2009 Posted May 3, 2009 On my footer I have two images in the center of the page that are appearing on top of each other (over each other) horizontally I would like to have the two images appear next to each other in the center of the page. How can I go about achieving this effect.
natashome Posted May 3, 2009 Posted May 3, 2009 paste here the footer.php code from the includes folder
2johnsons Posted May 3, 2009 Author Posted May 3, 2009 paste here the footer.php code from the includes folder As you can see I have Two images in the footer one for Authorize.net and one for my SSL Cetificate. I would like them to be side by side. I want the SSL Image to be next the the Authorize.net image on the right and both centered centered. (footer code below) <?php /* $Id: footer.php,v 1.1.1.1 2002/11/28 23:22:04 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php //echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . 'major_creditcards.gif' ,'' ); ?><br><?php echo FOOTER_TEXT_BODY ?> <!-- © 2005, 2009. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="0f0f9524-012f-436b-a92c-a04a270916e5";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Payment Gateway</a> </div> <a href="http://www.instantssl.com"> <img src="square_70pixels.gif" alt="SS" width="70" height="63" style="border: 0px;"><br> <span style="font-weight:bold; font-size:7pt">SSL</span></a><br> </tr> </table> <?php //if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php //echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php // } ?>
natashome Posted May 3, 2009 Posted May 3, 2009 replace your code with this but please backup before.. and let me know if it worked <?php /* $Id: footer.php,v 1.1.1.1 2002/11/28 23:22:04 wilt Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php //echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="3" cellpadding="0" align="center"> <tr> <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . 'major_creditcards.gif' ,'' ); ?><br><?php echo FOOTER_TEXT_BODY ?> <!-- © 2005, 2009. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="0f0f9524-012f-436b-a92c-a04a270916e5";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Payment Gateway</a> </div></td> <td align="center"><a href="http://www.instantssl.com"> <img src="square_70pixels.gif" alt="SS" width="70" height="63" style="border: 0px;"><br> <span style="font-weight:bold; font-size:7pt">SSL</span></a></td> </tr> </table> <?php //if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php //echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php // } ?>
2johnsons Posted May 14, 2009 Author Posted May 14, 2009 replace your code with this but please backup before.. and let me know if it worked <?php /* $Id: footer.php,v 1.1.1.1 2002/11/28 23:22:04 wilt Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php //echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="3" cellpadding="0" align="center"> <tr> <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . 'major_creditcards.gif' ,'' ); ?><br><?php echo FOOTER_TEXT_BODY ?> <!-- © 2005, 2009. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="0f0f9524-012f-436b-a92c-a04a270916e5";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Payment Gateway</a> </div></td> <td align="center"><a href="http://www.instantssl.com"> <img src="square_70pixels.gif" alt="SS" width="70" height="63" style="border: 0px;"><br> <span style="font-weight:bold; font-size:7pt">SSL</span></a></td> </tr> </table> <?php //if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php //echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php // } ?> Sorry for the delay thank you for the help but it's not centered and the images are not side by side in the center of the page. Take a look at the results
germ Posted May 14, 2009 Posted May 14, 2009 <?php /* $Id: footer.php,v 1.1.1.1 2002/11/28 23:22:04 wilt Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td class="footer" width="100%"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <?php if ( false ) { ?> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> <?php } ?> </tr> </table> <table border="0" width="100%" cellspacing="3" cellpadding="0" align="center"> <tr> <td width="33%"> <!-- needed for alignment //--> </td> <td width="34%" class="smallText" align="center"> <br> <?php echo tep_image(DIR_WS_IMAGES . 'major_creditcards.gif' ,'' ); ?><br> <?php echo FOOTER_TEXT_BODY ?> </td> <td width="33%"> <!-- needed for alignment //--> </td> </tr> </table> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="40%"> <!-- needed for alignment //--> </td> <td width="10%" class="smallText" align="center"> <a href="http://www.instantssl.com"> <img src="square_70pixels.gif" alt="SS" style="border: 0px none;" width="70" height="63"><br> <span style="font-weight: bold; font-size: 7pt;">SSL</span></a> </td> <td width="10%" class="smallText" align="center"> <!-- © 2005, 2009. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript"> var ANS_customer_id="0f0f9524-012f-436b-a92c-a04a270916e5";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js"> </script><style type="text/css"> div.AuthorizeNetSeal{text-align:center;margin:0;padding:0;width:90px;font:normal 9px arial,helvetica,san-serif;line-height:10px;} div.AuthorizeNetSeal a{text-decoration:none;color:black;} div.AuthorizeNetSeal a:visited{color:black;} div.AuthorizeNetSeal a:active{color:black;} div.AuthorizeNetSeal a:hover{text-decoration:underline;color:black;} div.AuthorizeNetSeal a img{border:0px;margin:0px;text-decoration:none;} </style> <a href="//verify.authorize.net/anetseal/?pid=0f0f9524-012f-436b-a92c-a04a270916e5&rurl=http%3A//flawnt.net/catalog/index.php" onmouseover="window.status='http://www.authorize.net/'; return true;" onmouseout="window.status=''; return true;" onclick="window.open('//verify.authorize.net/anetseal/?pid=0f0f9524-012f-436b-a92c-a04a270916e5&rurl=http%3A//flawnt.net/catalog/index.php','AuthorizeNetVerification','width=600,height=430,dependent=yes,resizable=yes,scrollbars=yes,menubar=no,t oolbar=no,status=no,directories=no,location=yes'); return false;" target="_blank"> <img src="//verify.authorize.net/anetseal/images/secure90x72.gif" alt="Authorize.Net Merchant - Click to Verify" width="90" border="0" height="72"> </a> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Payment Gateway</a></div> </td> <td width="40%"> <!-- needed for alignment //--> </td> </tr> </table> <?php if ( false ) { //if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <?php //echo tep_display_banner('static', $banner); ?> </td> </tr> </table> <?php // } } ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
2johnsons Posted May 30, 2009 Author Posted May 30, 2009 <?php /* $Id: footer.php,v 1.1.1.1 2002/11/28 23:22:04 wilt Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td class="footer" width="100%"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <?php if ( false ) { ?> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> <?php } ?> </tr> </table> <table border="0" width="100%" cellspacing="3" cellpadding="0" align="center"> <tr> <td width="33%"> <!-- needed for alignment //--> </td> <td width="34%" class="smallText" align="center"> <br> <?php echo tep_image(DIR_WS_IMAGES . 'major_creditcards.gif' ,'' ); ?><br> <?php echo FOOTER_TEXT_BODY ?> </td> <td width="33%"> <!-- needed for alignment //--> </td> </tr> </table> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="40%"> <!-- needed for alignment //--> </td> <td width="10%" class="smallText" align="center"> <a href="http://www.instantssl.com"> <img src="square_70pixels.gif" alt="SS" style="border: 0px none;" width="70" height="63"><br> <span style="font-weight: bold; font-size: 7pt;">SSL</span></a> </td> <td width="10%" class="smallText" align="center"> <!-- © 2005, 2009. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript"> var ANS_customer_id="0f0f9524-012f-436b-a92c-a04a270916e5";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js"> </script><style type="text/css"> div.AuthorizeNetSeal{text-align:center;margin:0;padding:0;width:90px;font:normal 9px arial,helvetica,san-serif;line-height:10px;} div.AuthorizeNetSeal a{text-decoration:none;color:black;} div.AuthorizeNetSeal a:visited{color:black;} div.AuthorizeNetSeal a:active{color:black;} div.AuthorizeNetSeal a:hover{text-decoration:underline;color:black;} div.AuthorizeNetSeal a img{border:0px;margin:0px;text-decoration:none;} </style> <a href="//verify.authorize.net/anetseal/?pid=0f0f9524-012f-436b-a92c-a04a270916e5&rurl=http%3A//flawnt.net/catalog/index.php" onmouseover="window.status='http://www.authorize.net/'; return true;" onmouseout="window.status=''; return true;" onclick="window.open('//verify.authorize.net/anetseal/?pid=0f0f9524-012f-436b-a92c-a04a270916e5&rurl=http%3A//flawnt.net/catalog/index.php','AuthorizeNetVerification','width=600,height=430,dependent=yes,resizable=yes,scrollbars=yes,menubar=no,t oolbar=no,status=no,directories=no,location=yes'); return false;" target="_blank"> <img src="//verify.authorize.net/anetseal/images/secure90x72.gif" alt="Authorize.Net Merchant - Click to Verify" width="90" border="0" height="72"> </a> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Payment Gateway</a></div> </td> <td width="40%"> <!-- needed for alignment //--> </td> </tr> </table> <?php if ( false ) { //if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <?php //echo tep_display_banner('static', $banner); ?> </td> </tr> </table> <?php // } } ?> Jim I input the code you have above and my out come was double of everything instead of everything side by side in the center of the page. the credit card images,authorize.net image and the ssl secure image. Was I suppose to take out certain lines of code or is there a mistake some where in the code? Thank you for you help. Take a look at the results.
germ Posted May 30, 2009 Posted May 30, 2009 Delete this: <img src="//verify.authorize.net/anetseal/images/secure90x72.gif" alt="Authorize.Net Merchant - Click to Verify" width="90" border="0" height="72"> My bad... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.