Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Help: Images

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Lil
Smarty n00b


Joined: 24 Mar 2012
Posts: 2

PostPosted: Sat Mar 24, 2012 10:40 pm    Post subject: Help: Images Reply with quote

Hello,

I use this code to generate images to a page

<p><span style="FONT-FAMILY: Tahoma; FONT-SIZE: small" face="Tahoma" size="3">{if $images}</span></p>
{foreach from=$images item=img} <img alt="" src="{$img.base}{$img.filename}" />{/foreach}
<p><span style="FONT-FAMILY: Tahoma; FONT-SIZE: small" face="Tahoma" size="3">{/if}</span></p>


it works really well, all the images are huge and can be seen clearly, but I was wondering if there is anyway that I could make Image 1 Huge and the rest smaller and side by side, for example

[big main picture on a huge box]

[other pic smaller] [other pic smaller]

[other pic smaller] [other pic smaller]

etc etc

or even

[big main picture on a huge box]

[ and the rest of the images lined up here smaller]

Thank You Cool
Back to top
View user's profile Send private message
winracer
Smarty Rookie


Joined: 15 Dec 2009
Posts: 12

PostPosted: Sun Mar 25, 2012 1:40 am    Post subject: Reply with quote

I run a cross this the other day, I am not sure if it is what you are looking far

http://www.newmediacampaigns.com/page/image-resizing-smarty

it will let you do height and width


{imagesize src=$imageUrl [width=200] [height=100] [crop=true] [bw=true] [colorize="#ff0000"] [radius=10] [forcepng=true] [background='#000000'] [alt='Alternate Text'] [title='Image Title'] [class='className'] [id='idName'] [style='inline styles']}
_________________
winracer
http://helpmewithperl.com
http://myfunnypets.com
Back to top
View user's profile Send private message
dough boy
Smarty Rookie


Joined: 31 Mar 2006
Posts: 32

PostPosted: Fri Mar 30, 2012 12:47 am    Post subject: Reply with quote

You should use CSS for this.

Like:

ul li img {width:y}
ul li:first-child img {width:x}

<ul>
<li><img></li>
<li><img></li>
</ul>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP