I have HTML markup below. I need to cut the size of div containing the table to half so basically overflow: hidden and only show a part of div contained within the specified size. However height property on the containing div is not being applied to the table.
<html>
<head>
<title>Test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
.temp{
height: 20px;
}
</style>
</head>
<body>
<div class="temp">
<table border="1">
<tr>
<td>This is a test.</td>
<td>Do you see what I mean?</td>
<td>I hate this overflow.</td>
</tr>
</table>
</div>
</body>
</html>
this will cut the one line of text you have in half , if that’s what you want . Are you sure you didn’t mean
to make 3 rows , then hide some of it?