table-layout

書式

table-layout:autoまたはfixed

対象

table要素

継承

しない

初期値

auto

バージョン

CSS Level 2

対応ブラウザ

Win IE5.0以降, NN7.1以降, Firefox, Opera 8, Safari

解説

テーブルの表示方法を指定します。autoで自動、fixedで指定幅で固定されます。
サンプルコード
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<style type="text/css"><!--
body { margin:0px; }
table { position:absolute; left:10px; top:10px;
table-layout:fixed; width:100px; }
--></style>
</head>
<body>
<table>
<tr><td nowrap>テーブルサンプル</td><td nowrap>table sample</td></tr>
</table>
</body>
</html>
実際のサンプルを実行する