Код PHP:
Теперь после верстки ком файла надо добавить в стиль. Будет такой стиль добавлен
<div class="con_heading">{$pagetitle}</div> {if $is_subcats} {if $id>0} <div class="faq_subcats"> {else} <div class="faq_cats"> {/if} <ul class="faq_cat_list"> <li class="faq_cat_item" style="background:url(/images/photos/medium/folder.png) no-repeat left top;"> <div class="faq_cat_link"><a href="/faq/{$subcat.id}">{$subcat.title}</a></div> {if $subcat.description} <div class="faq_cat_desc">{$subcat.description}</div> {/if} </li> {/foreach} </ul> </div> {/if}
Код PHP:
Теперь ваши категории вопросы и ответы сделаны в два ряда. При необходимости стилем вы можете догонять до нужного вида.
ul.faq_cat_list { list-style: none outside none; margin: 3px 0 1px 0px; overflow: hidden; padding: 0 0 0 1px; clear: both; } li.faq_cat_item { font-size: 14pt; text-decoration: none; margin: 3px 7px; line-height: 25px; height: 56px; border-bottom: 1px dashed #CCC; /* text-transform: uppercase; */ /* font-weight: bold; */ float: left; padding: 1px 5px 2px 23px; width: 42%; } .faq_cat_desc { margin-bottom: 5px; font-size: 13px; line-height: 14px; margin-top: 5px; font-weight: normal; font-family: tahoma; overflow: hidden; height: 30px; } .faq_cat_link { font-size: 18px; line-height: 16px; }