Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/10/2007, 10:18
chefnelone
 
Fecha de Ingreso: diciembre-2005
Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 18 años, 4 meses
Puntos: 15
Re: posicionar div con "absolute" ?

si hay texto en div ubicado con position:relative y el codigo es:


<p>hola</p>
<div class="div_contenedor">
<div class="badge1">texto</div>
</div>
<p>chau</p>

Entre 'hola" y "chau" no hay espacio(O SEA QUE ESTARIA BIEN):

hola
chau


PERO si hay image en div ubicado con position:relative y el codigo es:


<p>hola</p>
<div class="div_contenedor">
<div class="badge1"><img src="loquesea.jpg /></div>
</div>
<p>chau</p>

Entre 'hola" y "chau" HAY UN SALTO DE LINEA O MARGEN :

hola
//ESTAS 3 LINEAS SON EL ESPACIO EN BLANCO
//ESTAS 3 LINEAS SON EL ESPACIO EN BLANCO
//ESTAS 3 LINEAS SON EL ESPACIO EN BLANCO
chau



De momento lo he solucionado dandole un margin-top negativo pero es una chapuza...