legioner Posted July 14, 2012 Report Share Posted July 14, 2012 Доброе время суток, возникла проблема при натяжке своего шаблона на движок. Как вывести в 3 колонки блок товаром?Сделал так но нечего не выходит:<див class="kontent1">[Описание раздела][Популярные товары]{foreach name=products item=product from=$products} <див class="lot">[заголовок][картинка][описание][цена, корзина]</див> {if $smarty.foreach.products.iteration%3 == 0} <див class="clear"><!-- /--></див> {/if} {/foreach} [</див>] Quote Link to post Share on other sites
oldindianamen Posted July 14, 2012 Report Share Posted July 14, 2012 посмотрите эту ссылкуhttp://genger.co.cc/themes_simpla Quote Link to post Share on other sites
legioner Posted July 15, 2012 Author Report Share Posted July 15, 2012 А как сделать если табличная вёрстка? Quote Link to post Share on other sites
legioner Posted July 15, 2012 Author Report Share Posted July 15, 2012 Пробовал переделать блок товара в дивах, не получилось. Quote Link to post Share on other sites
MacKorOSX Posted July 15, 2012 Report Share Posted July 15, 2012 Вы бы хоть эскиз своего макета засветили чтобы можно было хоть что то посоветовать. Quote Link to post Share on other sites
yaskin Posted December 9, 2014 Report Share Posted December 9, 2014 .lot{ float: left; position: relative; width: 33%;} Можно добавить заданную высоту, чтоб товары выводились на одном уровне, например:height: 180px; Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.