Post lado a lado
Oi galera!
Eu to tentando fazer com que os posts do meu site fiquem lado a lado, o codigo que eu to usando é esse:
PHP
<div class="rel">
<a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) {
the_post_thumbnail(array(160,200), array( 'class' => 'thum' ));
} else {echo '<img src="/imagens/default.jpg" width="120" height ="120" class="thumb"/>';
}?></a>
<span class="tll"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
</div>
CSS
.rel {
margin:10px 5px 10px 10px;
padding: 9px 9px;
width:120px;
float:left;
}
.rel .tll {
padding:0 0 0 5px;
font-size: 11px;
width:130px;
text-align: center;
}
.thum{
float: left;
margin: 0px 8px 5px 3px;
background-color: #f8f8f8;
padding: 6px;
width: 130px;
height: 220px;
}
Sendo que a 1ª linha de posts não ficam na msm posição, ficam 1 mais abaixo do outro, e na 2ª linha, todos ficam na mesma posição, olhem o print:
/applications/core/interface/imageproxy/imageproxy.php?img=http://i49.tinypic.com/ofaer5.jpg&key=c9d922f4e8a816d958b36a928fc88dc82ed720f6f2db4544553548ce8258ef27" alt="ofaer5.jpg" />
eu ja usei esse tutorial aki, http://br.forums.wordpress.org/topic/postagens-lado-a-lado
só q dá o msm erro
alguem ai pode me ajudar???
Discussão (1)
Carregando comentários...