Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/10/2009, 16:00
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: como puedo fijar las dimensiones de una celda independientemente del conte

Ejemplo:

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
<head>
<title>ejemplo</title>
<style type="text/css">
.tablep {margin-top:10em;
margin-left:5em;
border: 1px solid #f00;
}
.td_1, .td_2 {width: 2em;
height: 2em;
border: 1px solid #0f0;
}
span.relleno {display: block;
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<table class="tablep">
<tr> <td class="td_1"><span class="relleno">la </span></td>
<td class="td_2"><span class="relleno">la tabla dichoso problema</span></td>
</tr>
</table>
</body>
</html>
__________________
Visita mi nueva web idplus.org