Antwort #3 am: 26. Oktober 2011, 19:58:46
Mach's nicht, die ist für:
{php}
if ($col>=3) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach} </tr>
Man könnte es über die css ein wenig eingrenzen mit z.Bsp. in der HTML
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" >{if $module_data.CATEGORIES_IMAGE}<a href="{$module_data.CATEGORIES_LINK}"><img src="{$module_data.CATEGORIES_IMAGE}" alt="{$module_data.CATEGORIES_NAME}" /></a>{/if}</td>
</tr>
<tr>
<td class="cat-listing-header"><a href="{$module_data.CATEGORIES_LINK}">{$module_data.CATEGORIES_NAME}</a></td>
</tr>
<tr>
<td class="cat-listing"><div class="cat-list">{$module_data.CATEGORIES_DESCRIPTION}</div></td>
</tr>
</table>
</td>
{php}
if ($col>=3) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach} </tr>
</table>
und in der css
.cat-listing { width:200px;
padding:2px 8px 0px 8px;
background-color:white;
border: solid #093864;
-moz-border-radius-bottomleft:10px; /* Für Firefox */
-webkit-border-bottom-left-radius:10px; /* Für Webkit */
-moz-border-radius-bottomright:10px;
-webkit-border-bottom-right-radius:10px;
box-shadow: 1px 2px 3px #646464;
-moz-box-shadow: 1px 2px 3px #646464;
-webkit-box-shadow: 1px 2px 3px #646464;
border-width:0px 1px 1px 1px;
font-size: 10px; text-align:justify;}
.cat-list {width: 200px; height:56px; overflow:auto; padding:2px 8px 0px 8px;}
.cat-listing-header { background: transparent url(img/boxkopf.jpg); width: 200px;
height:20px;
font-size:11px;
font-weight: bold;
font-variant:small-caps;
color:#000;
padding:2px 8px 0px 8px;
line-height:20px;
vertical-align:middle;
/* runde Ecken (oben) */
border:1px solid #093864;
-moz-border-radius-topleft:10px; /* Für Firefox */
-webkit-border-top-left-radius:10px; /* Für Webkit */
-moz-border-radius-topright:10px;
-webkit-border-top-right-radius:10px;
box-shadow: 1px 2px 3px #646464;
-moz-box-shadow: 1px 2px 3px #646464;
-webkit-box-shadow: 1px 2px 3px #646464;}
Sieht dann so aus, dass die Beschreibung nur in eine Höhe von 20px angezeigt wird, Rest scrollbar.
Ich habe mal alles genommen. Design musste selber ändern, Gruß.