SonyEricsson
Новичок
Ширина таблицы и дива
Вот небольшой код:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<link type="text/css" rel="stylesheet" media="screen" href="styles.css">
</head>
<body>
<div id="head">
<div class="mcshowed" id="id1">
<div class="mcbranch">
<table class="table">
<tr>
<th class="tableth">1</th>
<th class="tableth">2</th>
<th class="tableth">3</th>
<th class="tableth">4</th>
<th class="tableth">5</th>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
Стили:
* html #head { height: 75%; }
#head { min-height: 75%; margin-right: 13em; margin-left: 13em; background-color: white; border-left: 1px solid #1B4C76; border-right: 1px solid #1B4C76;
padding-top: .8em; font-size: 11px; font-family: Verdana; }
.table { width: 100%; font-size: 14px; font-family: Times New Roman; border-collapse: collapse; padding: 0; margin: 0; }
Получается на страницы как бы лист посредине с отступами, так вот при отображении в firefox и opera все нормально, а в MSIE ширина этого листа по центру растягивается, как это победить?
Вот небольшой код:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<link type="text/css" rel="stylesheet" media="screen" href="styles.css">
</head>
<body>
<div id="head">
<div class="mcshowed" id="id1">
<div class="mcbranch">
<table class="table">
<tr>
<th class="tableth">1</th>
<th class="tableth">2</th>
<th class="tableth">3</th>
<th class="tableth">4</th>
<th class="tableth">5</th>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
Стили:
* html #head { height: 75%; }
#head { min-height: 75%; margin-right: 13em; margin-left: 13em; background-color: white; border-left: 1px solid #1B4C76; border-right: 1px solid #1B4C76;
padding-top: .8em; font-size: 11px; font-family: Verdana; }
.table { width: 100%; font-size: 14px; font-family: Times New Roman; border-collapse: collapse; padding: 0; margin: 0; }
Получается на страницы как бы лист посредине с отступами, так вот при отображении в firefox и opera все нормально, а в MSIE ширина этого листа по центру растягивается, как это победить?