Я хочу div
в левой части страницы в виде столбца и еще один div
для заполнения правой части страницы. Прикрепленный мною скриншот показывает, что как в Firefox, так и в IE7 (с отключенными полосами прокрутки) два div
выходят за границы экрана. Я попытался получить margin
2px
со всех сторон, чтобы можно было увидеть border
из div
, но это не сработало.
CSS
* {
margin: 0;
}
html, form, body {
height: 100%;
margin:0;
padding:0;
font-family: "Segoe UI", "Lucida Grande", Helvetica, verdana, sans-serif;
font-size: 11px;
background: url(/Manage.UI/App_Themes/Default/header.png) no-repeat;
overflow: hidden;
}
#header {
height:162px;
background: url(/Manage.UI/App_Themes/Default/header.png) no-repeat;
}
#left {
top: 65px;
border-width: 1px;
border-style: solid;
border-color: #c6c6c6;
min-height:100%;
height: auto !important;
height: 100%;
width:300px;
bottom:100px;
left: 2px;
position: absolute;
float:left;
background-color: White;
}
.wrapper {
min-height: 100%;
width: 100%;
height: auto !important;
height: 100%;
top: 0px;
position: relative;
margin: 2px 2px 2px 2px;
}
#right {
top: 65px;
border-width: 1px;
border-style: solid;
border-color: #c6c6c6;
height:100%;
width:100%;
left: 305px;
position: absolute;
float:right;
background-color: White;
}
И ASPX Page
<body>
<form id="form1" runat="server">
<div class="wrapper">
<div id="left"></div>
<div id="right"></div>
</div>
</div>
</form>
</body>