Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adjusting an image


thejazzsinger

Recommended Posts

Hi everyone. In the code that follows if I wanted to specify the height and width of the .jpg where would I put it.

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'cooltext_logo.jpg', 'paulbentleymusic.com') . '</a>';

 

This seems to be s different type of html it doesn't work where I would usually put it.

 

Thanks.

 

thejazzsinger :-"

Link to comment
Share on other sites

I haven't tested this, so it's only a guess...

 

Did you try

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'cooltext_logo.jpg', 'paulbentleymusic.com') . ' height="X" width="Y"</a>';

I also don't know if the settings for images from within the Admin area might override this.

 

Note also that, in the default installation, the osC logo in the page header is presented thus...

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?>

so I wouldn't think that you need to specify height and width.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...