Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/12/2014, 21:43
quico5
 
Fecha de Ingreso: enero-2008
Mensajes: 580
Antigüedad: 16 años, 3 meses
Puntos: 9
overflow no se aplica

Ejemplo Bueno:
Código HTML:
<table border="1" style="table-layout:fixed; width:500px">
  <tr>
    <td style="width:100px;"><div style="overflow:scroll; width:100%">10000000000000000000000000000000000</div></td>
    <td>200</td>
    <td>300</td>
  </tr>
</table> 
Ejemplo malo:
Código HTML:
<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="UTF-8"/>
	<title>Document</title>
<style>
body{
	background-color: silver;
	display: table;
	table-layout:fixed;
	margin: 0;
	height: 100vh;
	width: 100px;
	>*{
		display: table-row;
		vertical-align: bottom;
	}
	main{
		height: 100%;
		width: 100%;
		overflow: scroll;
	}
	header,footer{
		height: auto;
		width: auto;
	}
}
</style>
</head>
<body>
	<header>header</header>
	<main>
		main<br>
		main<br>
		main<br>
		
<table border="1" style="table-layout:fixed; width:500px">
  <tr>
    <td style="width:100px;"><div style="overflow:scroll; width:100%">10000000000000000000000000000000000</div></td>
    <td>200</td>
    <td>300</td>
  </tr>
</table>
	</main>
	<footer>footer</footer>
</body>
</html>