Hello,
I've a problem with a table whose the witdh is 100%. With Firefox, it
correctly fits the width of the parent container, no more. But with
IExplorer, the witdth seems to be equal to the width of the body, so it
enlarges the parent-container.
See http://www.k1ka.be/rubrique.php3?id_rubrique=1
HTML code:
<body>
<div id=corps>
<div id=bandeau>
<table id=navigation>
<tr>
<td id=accueil><a href="http://www.k1ka.be">Accueil</a>/</td>
<td id=autrebranche><a
href="rubrique.php3?id_rubrique=3">Textes</a></td>
<td id=date>Dernière modif.: 23 mai 2006</td>
</tr>
</table>
</div>
(etc.)
CSS:
body {
margin:0;
background-color: white;
}
#corps {
margin: 50px;
padding: 0;
}
#bandeau {
margin: 0;
padding: 0;
}
#navigation {
width:100%;
}
I don't want to use a fixed width for the parent container, because I
hope this page will correctly be displayed with several screenwidthes.
So I use fixed margins for the <div id=corps>. I think that the the
width used in such a case by "width=100%" is the border of the parent
container, without (!) the margins. Am I wrong ?
I Know that the <div id=bandeauis useless, but it results of another
test for the style.
Has someone a solution compatible with firefox+IExplorer ?
Thanks in advance,
G.