Guest Posted August 4, 2006 Posted August 4, 2006 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
mtechama Posted August 5, 2006 Posted August 5, 2006 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!
Guest Posted August 5, 2006 Posted August 5, 2006 Its the account.php page. I just want those darn green arrows aligned in the middle.
Guest Posted August 5, 2006 Posted August 5, 2006 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>
Guest Posted August 5, 2006 Posted August 5, 2006 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>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.