Salut J'ai ce code,Faire stretch div s'adapter td hauteur
<html>
<body>
<table>
<tr>
<td>
<div class="the-div">h:100%</div>
</td>
<td>
<div class="the-div-w-height">h:100px</div>
</td>
</tr>
</table>
</body>
</html>
avec ce style,
.the-div
{
height: 100%;
background-color: red;
}
.the-div-w-height
{
height : 100px;
background-color: yellow;
}
Je veux faire le tronçon div rouge à l'intérieur du td, l'autre div peut changement de hauteur en fonction du contenu, la première div doit étirer avec la table
Merci
Voir http://stackoverflow.com/questions/14442747/making-a-div-inherit-the-height-of-parent-td -using-only-css –
[** ici vous allez **] (http://jsfiddle.net/3k6kq/1/) – NoobEditor
@NoobEditor OK dans Chrome, KO dans Firefox (nécessite également 'td {height: 100% } 'Je suppose) – FelipeAls