Gunah
20.05.2009, 18:44
Ich wollte dem 3ten Element eine Klasse bei mir verpassen, damit es genau in dem Rahmen passt, da ich mir margin-right die Elemente aus ein ander geschoben haben, aber genau dieser Rand stört an der Seite...
Der Normale Quellcode:
****** <ul id="sCategorieListing">
****{foreach from=$sListSubCategories item=row key=sListSubCategories name=sList}
****** <li id="cat{$row.id}">{$row.deScript [ Programm ]ion|escape:'html':'ISO-8859-15'} ({$row.Link [ Verweis auf andere Stelle der Webseite ]})
****{/foreach}****
****** [/list]
und der Quellcode wo ich eine Klasse hinzugefügt habe :-)
****** <ul id="sCategorieListing">
****{foreach from=$sListSubCategories item=row key=sListSubCategories name=sList}
****** <li id="cat{$row.id}"{if ($smarty.foreach.sList.iteration % 3) == false } class="right"{/if}>{$row.deScript [ Programm ]ion|escape:'html':'ISO-8859-15'} ({$row.Link [ Verweis auf andere Stelle der Webseite ]})
****{/foreach}****
****** [/list]
http://smarty.net/manual/en/language.funct....property.index (http://anonym.to/?http://smarty.net/manual/en/language.function.foreach.php#foreach.property.ind ex)
{if ($smarty.foreach.sList.iteration % 3) == false } class="right"{/if}
vielspass :-)
Der Normale Quellcode:
****** <ul id="sCategorieListing">
****{foreach from=$sListSubCategories item=row key=sListSubCategories name=sList}
****** <li id="cat{$row.id}">{$row.deScript [ Programm ]ion|escape:'html':'ISO-8859-15'} ({$row.Link [ Verweis auf andere Stelle der Webseite ]})
****{/foreach}****
****** [/list]
und der Quellcode wo ich eine Klasse hinzugefügt habe :-)
****** <ul id="sCategorieListing">
****{foreach from=$sListSubCategories item=row key=sListSubCategories name=sList}
****** <li id="cat{$row.id}"{if ($smarty.foreach.sList.iteration % 3) == false } class="right"{/if}>{$row.deScript [ Programm ]ion|escape:'html':'ISO-8859-15'} ({$row.Link [ Verweis auf andere Stelle der Webseite ]})
****{/foreach}****
****** [/list]
http://smarty.net/manual/en/language.funct....property.index (http://anonym.to/?http://smarty.net/manual/en/language.function.foreach.php#foreach.property.ind ex)
{if ($smarty.foreach.sList.iteration % 3) == false } class="right"{/if}
vielspass :-)