Posted by vunet.us on 02/08/07 21:16
Hello,
My table's cell has a 100px width. But when I shrink window, the cell
size gets smaller and smaller. How can I avoid this? The code is
below. Thanks you all.
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Simple example</title>
<style type="text/css">
table.sample {
border-width: 0px;
border-spacing: 0px;
border-collapse: collapse;
}
table.sample td {
width:100px;
border-width: 1px;
padding: 1px;
border-style: inset;
border-color: gray;
background-color: white;
}
</style>
</head>
<body>
<table class="sample"><tr>
<td>Content</td><td>Content</td><td>Content</td><td>Content</
td><td>Content</td><td>Content</td><td>Content</td>
</tr></table>
</body>
</html>
[Back to original message]
|