I have a pretty simple document:
<html>
<body>
<style type="text/css">
div.main {
font-size: smaller;
}
</style>
<div class="main">
Lorem ipsum dolor sit amet<br/>
<span>Lorem ipsum dolor sit amet</span>
<div>Lorem ipsum dolor sit amet</div>
<table>
<tbody>
<tr>
<td>Lorem ipsum dolor sit amet</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
Here's the rendering I get:
I have two questions:
Why does
table
not inherit thefont-size
from its parentdiv
, unlike other elements?What is the correct solution to this problem?