Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stupid question


Guest

Recommended Posts

Posted

Hey everyone I am trying to VAlign this one image but i cant get it to work.

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td>

 

Any clues how I can get that to work? I tried

. 'arrow_green.gif', 'valign=middle')

but that just changes the alt for the img. I tried

<td valign="middle" class="main">

no such luck

Posted
Hey everyone I am trying to VAlign this one image but i cant get it to work.

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td>

 

Any clues how I can get that to work? I tried

. 'arrow_green.gif', 'valign=middle')

but that just changes the alt for the img. I tried

<td valign="middle" class="main">

no such luck

 

What page on your website are you talking about

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

Its the account.php page. I just want those darn green arrows aligned in the middle.

Posted

center alignment on the vertical is the default. So you shouldn't need to specify it. You need to create another table to align the elements properly.

 

<td><table .........>
 <tr>
 <td class="main">Image</td>
 <td class="main">Text</td>
 </tr>
</table></td>

Posted

incase someone else finds this useful

<tr><td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td></tr>

 

change to, also change the width to the width of your image.

 

<tr>
 <td class="main" width="5"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif'); ?></td>
 <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td>
</tr>

Archived

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

×
×
  • Create New...