Je viens de nest mes divs dans un
#TabContainer {width: 100%; height: 100%;}
Et ai modifié mon css comme ceci :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| body
{
background-color: #5c87b2;
font-size: .85em;
font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif;
color: #696969;
width: 100%;
}
.page
{
margin: auto;
position: absolute;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
header, #header
{
width: 100%;
top:0px;
height:40px;
}
#main
{
top: 40px;
overflow: auto;
padding: 15px;
background-color: #fff;
border-radius: 4px 0 0 0;
-webkit-border-radius: 4px 0 0 0;
-moz-border-radius: 4px 0 0 0;
}
footer, #footer
{
background-color: #fff;
color: #999;
padding: 2px 0;
text-align: center;
line-height: normal;
margin: 0 0 30px 0;
font-size: .9em;
border-radius: 0 0 4px 4px;
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
} |
J'obtiens le résultat souhaité, mais est-ce que la logique de ce CSS vous semble correcte ?
Partager