<div class="list">
<ul class="no_mark">
<?foreach($ListItems as $arItem):?>
<li id="<?=$id?>">
<p><?=$arItem['PREVIEW_TEXT']?></p>
<div class="review-logo"><?if(is_array($arItem['PREVIEW_PICTURE'])):?><img src="<?=$arItem['PREVIEW_PICTURE']['SRC']?>" alt="<?=$arItem['PREVIEW_PICTURE']['DESCRIPTION']?>" /><?endif?></div>
<div class="review-author">
<?if($arItem['DISPLAY_PROPERTIES']['AUTHOR']):?><strong><?=$arItem['DISPLAY_PROPERTIES']['AUTHOR']['VALUE']?></strong><?endif?>
<?if($arItem['DISPLAY_PROPERTIES']['JOB']):?><?=$arItem['DISPLAY_PROPERTIES']['JOB']['VALUE']?><?endif?> (<?=$arItem['NAME']?>)
</div>
</li>
<?endforeach;?>
</ul>
</div>
Код такой.
Код:
|
.list p{
padding:0 0 12px 0; margin:0 0 12px 0;
border-bottom:#e3e3e3 1px solid;
color:#666; line-height:18px; font-size:12px;}
.review-logo{
float:left;
width:40px;
text-align:center;}
.review-logo img{
max-width:auto; height:auto;}
.review-author{
float:right;
width:155px;}
.review-author{
color:#666; font-size:12px; line-height:18px;}
.review-author strong{
font-weight:400; color:#333;}
.list{
overflow:hidden; position:relative;
width:242px; margin-bottom:12px;}
.list ul{
position:relative;
width:30000px;}
.list ul li{
width:242px; float:left; overflow:hidden;
padding:0 0 10px 0;
font-size:12px; line-height:16px; color:#666;} |
Вот css.