Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/08/2010, 12:09
preguntonto
 
Fecha de Ingreso: julio-2010
Mensajes: 21
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Alinear IMG y TXT en linea inferior

Hola Dark03

Mira por que te digo que no

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>X_x</title>
<style type="text/css">
<!--
body,td,th {
	color: #000000;
	font-family:Verdana;
	font-size:12px;
	font-weight:bold;
	
}

#contenedor {
	width:300px;
	height: auto;
	border:1px #00CC99 solid;
	margin:50px 50px 50px 50px;
	float:left;
}

#img {
	width:100px;
	height: auto;
	color:#330033;
	border:1px #999999 solid;
	float:left;
}

#txt{
width:190px;
height:100%;
background-color:#33FF99;
float:right;
margin-top:70px;
}

-->
</style>
</head>

<body>

<div id="contenedor">
	<div id="img">
    <img src="http://img.teoriza.com/messenger/iconos-gestuales-gratis-para-descargar-messenger-msn.jpg"/>
    </div>
    <div id="txt">
    Este es el texto el cual se muestra en dos lineas
    </div>
</div>



<div id="contenedor">
	<div id="img">
    <img src="http://img.teoriza.com/messenger/iconos-gestuales-gratis-para-descargar-messenger-msn.jpg"/>
    </div>
    <div id="txt">
    Este es el texto el cual se </div>
</div>


<div id="contenedor">
	<div id="img">
    <img src="http://img.teoriza.com/messenger/iconos-gestuales-gratis-para-descargar-messenger-msn.jpg"/>
    </div>
    <div id="txt">
    Este es el texto el cual se </div>
</div>


<div id="contenedor">
	<div id="img">
    <img src="http://img.teoriza.com/messenger/iconos-gestuales-gratis-para-descargar-messenger-msn.jpg"/>
    </div>
    <div id="txt">
    Este es el texto el cual se muestra en dos lineas
    </div>
</div>



</body>
</html> 
El texto del titulo es dinamico. Hay casos que tendre dos lineas y casos que tendre una linea

en el ejemplo puse con casos de una linea y casos de dos lineas

Te das cuenta?