Código PHP:
span.derecha{
display: block;
float: right
}
span.izquierda{
display: block;
float: left
}
Y quisiera que se quedara así:
Aquí el código:
Código PHP:
<div id=contenido>
<div id=titulo>
<span class=izqda>
<h1>Lorem Ipsum
</h1></span>
<span class=dcha>
<img src=imagen.gif>blablabla
</span></div>
<div class=cuerpo>
The following text consists of a mock Latin which has been based upon the
average frequency of characters and word lengths of the English language in
order to reproduce a reasonably accurate overall visual impression. Lorem
ipsum dolor sit amet, consectetur adipscing elit, sed diam nonnumy eiusmod
tempor incidunt ut labore et dolore magna aliquam erat volupat.
</div>
</div>
Código PHP:
#contenido {
text-align:justify;
background: #fefefe;
width:520px;
float:left;
margin-bottom:10px;
padding: 5px;
border: #c4c4c4 solid 1px;
font-family: Verdana, "Times New Roman", Times, serif;
font-size: 9pt;
color: #000000;
}
#contenido h1 {
padding-left:15px;
width:auto;
font-family: Verdana, "Times New Roman", Times, serif;
font-size:18px;
color: #105BAC;
font-weight: normal;
}
#titulo {
border: #c4c4c4 solid 1px;
margin-bottom:5px;
}
#titulo span.izqda {
display:block;
float:left;
}
#titulo span.dcha {
display:block;
float:right;
}
Saludos!!!