Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to align an image in php code?


loveacrossborders

Recommended Posts

I just need to know how to align an image in php code. For example:

 

<?php echo tep_image(DIR_WS_IMAGES . 'picture.gif', 'name_of_picture');?>

How would I align this to the left, right, or center?

 

Use html, it depends on where you are trying to insert it but by looking at the surronding code you should be able to set it where you want.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

I just need to know how to align an image in php code. For example:

 

<?php echo tep_image(DIR_WS_IMAGES . 'picture.gif', 'name_of_picture');?>

How would I align this to the left, right, or center?

Hi try html tags

<center><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'picture.gif', 'name_of_picture') . '</center>

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...