IMHO.WS

IMHO.WS (http://www.imho.ws/index.php)
-   Для профессионалов (http://www.imho.ws/forumdisplay.php?f=91)
-   -   css2 + IE = some help needed (http://www.imho.ws/showthread.php?t=83484)

ftpd 08.04.2005 15:38

css2 + IE = some help needed
 
Привет!
помогите пожалуйста подружить вот эти стили с эксплорером, или ткните пальцем где читать.
проверял на 3-ех броузерах(Firefox, Opera, Konqueror) - они показывают так как я хочу, а эксплорер форматит через пень-колоду.
Код:

<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
<head>
<title>Web Server</title>
<style> 
  body {
            margin: 5px 10px 5px 10px;
        padding: 0px;    }   
 .header{       
                left: 10px;
        right: 10px;
        height: 50px; 
        display: block;
        background: #E8EEFC;
        position: fixed; 
        border:1px solid  #888E9C;
        bottom: auto;
        top: 0;    }   
.lmenu{
              width: 140px;
              top: 50px;
              height: 90%;
            display: block;
          background: #E8EEFC;
        position: fixed;
          border:1px solid  Black;    }   
.main{
        top: 50px;
          left: 150px;
        right: 10px;
        bottom: 0px;
        height: 90%;
          display: block;
        background: #000000;
        position: fixed;
          border:1px solid  RED;    }
</style> </head>
<body>
<!--header-->
<div class="header">Main page </div>
<!--/header-->

<!--left menu-->
<div class="lmenu">Menu </div>
<!--/left menu-->

<!--main-->
<div class="main">Body </div> <!--/main-->
</body> </html>


Stormbr!nger 11.04.2005 23:32

Прикол в том, что IE не понимает position: fixed.

В интернете есть полно примеров на эту тему, например:
http://accessat.c-net.us/test/template-2col_a.html


Часовой пояс GMT +4, время: 07:08.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.