View Single Post
  #5  
Old 04-12-2007, 09:32 AM
 
reefland reefland is offline
 

Member
  
Join Date: Apr 2005
Posts: 16
 

Default Re: How to Reference the Detailed image width and height values?

You might do something like this:

Code:
{section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} {section name=image loop=$images} {if $images[image].image_x > 460} <IMG src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}" width="460" /> {else} <IMG src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}" /> {/if} {/section}

This will keep any detailed image at or under 460px in width in or to keep it from breaking a style.
__________________
4.0.19
Reply With Quote