Fonctionnement de overflow
Bonjour,
Je ne comprends pas pourquoi mon "overflow:auto" n'est pas appliqué !!
Quelqu'un pourrait-il m'expliquer pourquoi et comment je peux faire (sachant que ma contrainte est de conserver ma balise table) ?
Merci d'avance pour votre aide.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<table style="background-color:blue; display:inline-block; width:300px; height:100px; vertical-align:top;">
<tr>
<td style="overflow:auto; padding:0px; margin:0px;">
<div><input type="checkbox" />Valeur 1</div>
<div><input type="checkbox" />Valeur 2</div>
<div><input type="checkbox" />Valeur 3</div>
<div><input type="checkbox" />Valeur 4</div>
<div><input type="checkbox" />Valeur 5</div>
<div><input type="checkbox" />Valeur 6</div>
</td>
</tr>
</table>
<div style="background-color:red; display:inline-block; width:50px; height:100px; vertical-align:top;">
</div>
</body>
</html> |