0
I was able to align my image through this topic Align text after image , only that the image sits on top of some other content of the page, as I could arrange?
My div:
<div width="10%" class="areaImagem">
<?php
$id = $PDO->lastInsertId();
echo "<img src='imagens/". $id ."/".$user['foto']."' alt='Foto' width='30%' height='30%'/>"; ?>
</div>
<div class="areaTexto">
<b>Título:</b> <?php echo $user['titulo'] ?> <br />
</div>
CSS:
.areaImagem{
float:left;
margin-top:10px;
}
.areaImagem img{
width:400px;
}
.areaTexto{
float:left;
max-width:500px;
margin-left:10px;
}
Put a more elaborate example... How can we help if we don’t even have css?
– Anderson Henrique
just of you do . areaText{float:right; width: 90%;} is already to work, you’re also styling a paragraph (p) that you don’t even have
– Anderson Henrique