Как сделать картинку на уровне текста

[Удален]
586

В интернет-магазине в карточке товара сначала выводится название товара, а ниже ее изображение товара. Можно ли как то сделать, что бы название товара(текст) обтекал картинку?

Вот кусок кода:

<div class="prdbrief_name"><a {$target} href='{$_product_url}'>{$product_info.name|escape:'html'}</a></div>

{if $product_info.thumbnail || $product_info.picture}

<div class="prdbrief_thumbnail">

<table cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle" style="width: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE}px; height: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE}px;">

<!-- Thumbnail -->

<a {$target} href='{$_product_url}'>{if $product_info.thumbnail}

<img src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$product_info.thumbnail|escape:'url'}" alt="{$product_info.name|escape:'html'}" />

{elseif $product_info.picture}

<img src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$product_info.picture|escape:'url'}" alt="{$product_info.name|escape:'html'}" />

{/if}</a>

</td></tr></table>

</div>

{/if}

Спасибо.

[Удален]
#1

roma095

<div class="prdbrief_name"><a {$target} href='{$_product_url}'>{$product_info.name|escape:'html'}</a></div>
{if $product_info.thumbnail || $product_info.picture}
<div class="prdbrief_thumbnail" align="left" style="float: left;" >
<table cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle" style="width: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE}px; height: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE}px;">
<!-- Thumbnail -->
<a {$target} href='{$_product_url}'>{if $product_info.thumbnail}
<img src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$product_info.thumbnail|escape:'url'}" alt="{$product_info.name|escape:'html'}" align="left" style="float: left;" />
{elseif $product_info.picture}
<img src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$product_info.picture|escape:'url'}" alt="{$product_info.name|escape:'html'}" align="left" style="float: left;" />
{/if}</a>
</td></tr></table>
</div>
{/if}

а так ))))

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий