I'm trying to create a table with only two rows. My intention is that the table be responsive and that the scroll bar only appear on the second line if the content exceeds height
. In Chrome it works perfectly more in FireFox is not working.
HTML:
<table border=1>
<tr>
<td height="100">
<h2>Cabeçalho</h2>
</td>
</tr>
<tr>
<td>
<div class="conteudo">
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo</p><br>
<p>Olá Mundo1</p><br>
</div>
</td>
</tr>
</table>
CSS:
html, body {
margin:0;
padding:0;
height:100%;
}
.conteudo{
width:100%;
min-height:100%;
background-color:#999;
overflow: auto;
color: #fff;
}
table {
width:100%;
height:100%;
min-height:100%;
}
Would someone give me a hand?