Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/11/2013, 16:39
rodojpm
 
Fecha de Ingreso: julio-2010
Mensajes: 127
Antigüedad: 13 años, 9 meses
Puntos: 2
Como superponer un span sobre otro sin usar position:absolute

Estoy tratando de poner un span sobre otro y no lo logro, aquí esta mi código html:

Código HTML:
<ul id="notificationsList">
    <li>
        <span class="dates">
            2/12/2013
            <span class="eDate">
                31/12/2013
            </span>
        </span>
        <span class="eContent">
            This is the content of the notification
        </span>
    </li>
</ul> 
And my code css
Código:
#notificationsList li
{
    height:30px;
    background:#ccc;
}
.dates{
    font-size:11px;
    float:left;
    height:30px;
    width:100px;
    background:red;
}
.eDate{
    display:block;
}
.eContent{
    position:relative;
    margin-left:-100px;
    display:block;
    font-size:18px;
    padding-top:5px;
}
I want to put .eContent under .date
__________________
Mi ultima web.