TGPX responsive template?
I'm trying to figure it how to use div's instead of tables.
any idea?
i'm using such code for displaying thumbs:
{galleries
var=$galleries
type=permanent
format=pictures
getnew=true
allowused=false
description=false
preview=true
amount=20
previewsize=200x300
category=xxx
sponsor=any
order=clicks DESC}
<table align="center" cellpadding="5" border="0">
<tr>
{* Display loaded galleries as thumbnails in a 5 per row format *}
{foreach from=$galleries var=$gallery counter=$counter}
<td align=center><a href="tgpx codes here" target="_blank"><img src="tgpx codes here" width=200 height=300></a><br>visits: {$gallery.clicks|htmlspecialchars}</td>
{insert counter=$counter location=+5 max=15}
</tr><tr>
{/insert}
{/foreach}
</tr>
</table>
it displays 20 galleries, 5 per one line and numbers of visits under each thumb, now what puzzles me how to change it into divs so it will be scaleable?
anyone did it with tgpx and wanna share?
|