Jump to content

Archived

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

shadowcatek

php code help, trying to align right an image

Recommended Posts

I have googled forums and can't figure if this is even possible.

 

I want this image to align to the right side

 

Here is the php code:

 

<?php echo '<a href="http://www.freeshippingmotorsports.com">' . tep_image(DIR_WS_IMAGES . 'freeshippingmotorsportshome.gif', FreeShippingMotorsports) . '</a>'; ?>

 

do i add align="right" somewhere in there?

 

Thank you in advance for helping me out.

Share this post


Link to post
Share on other sites
I have googled forums and can't figure if this is even possible.

 

I want this image to align to the right side

 

Here is the php code:

 

<?php echo '<a href="http://www.freeshippingmotorsports.com">' . tep_image(DIR_WS_IMAGES . 'freeshippingmotorsportshome.gif', FreeShippingMotorsports) . '</a>'; ?>

 

do i add align="right" somewhere in there?

 

Thank you in advance for helping me out.

 

If ur code is contained inside some table, then u can give the alignment as

 

<td align=right>
<?php echo '<a href="http://www.freeshippingmotorsports.com">' . tep_image(DIR_WS_IMAGES . 'freeshippingmotorsportshome.gif', FreeShippingMotorsports) . '</a>'; ?></td>

 

or still u can use div tag as

 

<div align=right><?php echo '<a href="http://www.freeshippingmotorsports.com">' . tep_image(DIR_WS_IMAGES . 'freeshippingmotorsportshome.gif', FreeShippingMotorsports) . '</a>'; ?> </div>

Share this post


Link to post
Share on other sites

The function call params are:

 

 

tep_image( $src , $alt, $width , $height , $parameters )

 

so you add 'align="right"' for the 5th param


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

×