Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to center Information box links on a page in one line?


avtoritet

Recommended Posts

I removed links from Info Box , I removed <br> tag so now they go one after another.

But whatever I tried to do to center them on the page nothing helps.

 

Well, see the link just in case

Webpage

to have idea what I am talking about.

The links are on the bottom, if you see they aligned right, although I put each link individually in a separated cell in a table to align them Center. Without table they all together and always aligned left. I am using regular HTML code.

 

And this is a copy of a code currently in use:

 

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

<tr>

<td align="center"><?php $info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'); new PlainBox($info_box_contents);?>

<div align="center"></div></td>

<td><?php $info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'); new PlainBox($info_box_contents);?>

<div align="center"></div></td>

<td><?php $info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'); new PlainBox($info_box_contents);?>

<div align="center"></div></td>

<td><?php $info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new PlainBox($info_box_contents);?>

<div align="center"></div></td>

</tr>

</table>

 

Maybe someone can help me with links position, and maybe there is simpler solution

Thanks forward

Link to comment
Share on other sites

This is how i have mine setup in footer.php

 

<tr class="footer">
<td align="center" class="footer"> | <a href="<?php echo tep_href_link(FILENAME_SHIPPING, '', 'SSL'); ?>" class="footer"><?php echo BOX_INFORMATION_SHIPPING; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_PRIVACY, '', 'SSL'); ?>" class="footer"><?php echo BOX_INFORMATION_PRIVACY; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CONDITIONS, '', 'SSL'); ?>" class="footer"><?php echo BOX_INFORMATION_CONDITIONS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>" class="footer"><?php echo BOX_INFORMATION_CONTACT; ?></a> | </b></b><a href="<?php echo tep_href_link(FILENAME_SITEMAP, '', 'SSL'); ?>" class="footer"><?php echo BOX_INFORMATION_SITEMAP; ?></b></b></td><hr>
 </tr>

 

The_Bear

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...