Hello !
J'ai un petit soucis avec mon design. Je ne sais vraiment pas d'ou ca vient, mais Firefox ne calcule pas les largeurs de la meme facon qu'IE
D'après moi, c'est IE qui a raison, à savoir que si je mets un bloc de 150 et un de 650px de large dans un bloc de 800px de large, ca passe (sans margin), mais firefox n'est pas d'accord avec ca.
voilà le css :
Code :
- body {
- margin:0px;
- padding:0px;
- text-align:center;
- background-color:#0F0900;
- font-family: Verdana;
- font-size:12px;
- color:#FFFCC9;
- }
- .menuList{
- margin: 0px;
- padding: 0px;
- display: inline;
- list-style-type: none;
- text-align:right;
- }
- .title {
- margin:0px 0px 0px 100px;
- padding:0px;
- text-align:right;
- border-bottom:1px solid #CCFF6D;
- color:#CCFF6D;
- }
- #header {
- background:url(./images/header2.jpg);
- padding:10px 0px 0px 0px;
- height:200px;
- margin:0px;
- }
- #main {
- text-align:justify;
- background-color:#211400 ;
- margin-bottom:0px;
- margin-left:auto;
- margin-right:auto;
- width:800px;
- border-left:1px solid #D8D488;
- border-right:1px solid #D8D488;
- overflow:auto;
- }
- #content {
- margin:0px;
- border-top:1px solid #D8D488;
- background-color:#211400;
- float:left;
- padding:0px 20px 20px 20px;
- width:610px;
- }
- #right_col {
- margin:0px;
- padding:0px;
- float:right;
- background:url(./images/header2.jpg) no-repeat;
- background-position: -650px -220px;
- width:150px;
- }
- #menu {
- float:right;
- margin:0px;
- padding:100px 0px 100px 0px;
- border-bottom:1px solid #D8D488;
- border-left:1px solid #D8D488;
- }
- #menu a {
- background-color:#ffffff;
- margin-bottom:2px;
- width:125px;
- float:right;
- text-align:right;
- padding:0px;
- display:block;
- height:25px;
- padding-right:20px;
- color:#3D2301;
- }
- #menu li {
- float:right;
- padding:0px;
- margin:0px;
- background-color:#ffffff;
- filter:alpha(opacity=60);
- opacity:0.5;
- }
|
En gros, j'ai mon conteneur main centré sur la page, de 800px de large. Dedans je prends un div "content" de 610px à gauche et un autre "right_col" de 150px. Dans cette configuration là c'est niquel sous firefox, mais pas sous IE puisqu'il manque 800 - 610 - 150 = 40px !
Heeeelp!