Boas pessoal,
Tenho uma dúvida/problema.
Eu tenho duas imagens e gostava que o texto se molda-se a elas.
A primeira imagem está alinhada à esquerda e o texto já se molda mas a segunda deverá aparecer à direita e o texto moldar-se a ela e continuar sem "empurrar" a imagem para baixo ficando sempre no fim.
Aqui vai o meu código:
Código (PHP):
Será que alguém me pode dar uma ajuda?
Tenho uma dúvida/problema.
Eu tenho duas imagens e gostava que o texto se molda-se a elas.
A primeira imagem está alinhada à esquerda e o texto já se molda mas a segunda deverá aparecer à direita e o texto moldar-se a ela e continuar sem "empurrar" a imagem para baixo ficando sempre no fim.
Aqui vai o meu código:
Código (PHP):
<div class="layout-cell layout-item-2" style="width: 100%" >
<?php
include('../bd/init.php');
$id = $_POST['id'];
$sql = "SELECT * FROM noticias WHERE id='$id'";
$executar = mysql_query($sql) or die(mysql_error());
while ($reg = mysql_fetch_array($executar)) {
?>
<h3><?php echo $reg['titulo']; ?></h3>
<?php echo '<img src="paineldegestao/imagens/' . $reg['imagem1'] . '" class="floatLeft"/>'; ?>
<p style="width: 100%"><?php echo $reg['corpo']; ?></p>
<?php echo '<img src="paineldegestao/imagens/' . $reg['imagem2'] . '" class="floatRigth"/>'; ?>
<div style="clear: both"></div>
<div class="content-layout-br layout-item-1">
</div>
<?php
}
?>
</div>
<?php
include('../bd/init.php');
$id = $_POST['id'];
$sql = "SELECT * FROM noticias WHERE id='$id'";
$executar = mysql_query($sql) or die(mysql_error());
while ($reg = mysql_fetch_array($executar)) {
?>
<h3><?php echo $reg['titulo']; ?></h3>
<?php echo '<img src="paineldegestao/imagens/' . $reg['imagem1'] . '" class="floatLeft"/>'; ?>
<p style="width: 100%"><?php echo $reg['corpo']; ?></p>
<?php echo '<img src="paineldegestao/imagens/' . $reg['imagem2'] . '" class="floatRigth"/>'; ?>
<div style="clear: both"></div>
<div class="content-layout-br layout-item-1">
</div>
<?php
}
?>
</div>
Será que alguém me pode dar uma ajuda?