balise div class et safari
Bonjour.
J'ai fais des tests avec différents navigateurs ...8O
j'aimerai savoir pourquoi,ce code suivant :
Code:
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style2.css" rel="stylesheet" type="text/css">
<title>Document sans nom</title>
</head>
<body>
<div class="cadre_general">
<div class="bandeau">
<div class="cadre_logo">
<img src="images/logo_club1.gif" alt="logo du club" width="193" height="105"><br>le site officiel
</div>
<div class="cadre_banniere">En construction
</div>
</div>
<div class="onglet">
<div class="ongletgauche">
<a href="evenements.php">Les prochains évênements</a>
</div>
<div class="ongletcentre">
<a href="prochaines_rencontres.php">Les prochains matchs</a>
</div>
<div class="ongletdroit">
Autres
</div>
</div>
</div>
</body>
</html> |
et cette feuille de style ::cfou:
Code:
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 50 51 52 53 54 55
|
.cadre_general{
font-family:"Comic Sans MS";
width:95%;
margin-left:2%;
margin-right:2%;
border:2px #0066CC outset;
background:#5498FF;
}
/*bandeau*/
.bandeau{
width:100%;
color:#FFFFFF;
padding:0px;
margin:0px;
}
.cadre_logo{
float:left;
width:25%;
margin:0px;
text-transform:uppercase;
text-align:center;
}
.cadre_banniere{
float:left;
width:70%;
}
/*onglet*/
.onglet{
text-align:center;
background-color:#0066CC;
color:#FFFFFF;
width:100%;
}
.ongletgauche{
float:left;
width:33%;
padding:0px;
margin:0px;
}
.ongletcentre{
float:left;
width:33%;
padding:0px;
margin:0px;
}
.ongletdroit{
float:left;
width:33%;
padding:0px;
margin:0px;
} |
ne marche que sur IE et sur aucun autre navigateur? C'est un code propriétaire? Si oui, comment y pallier sans passer par les tableaux classiques (<table> etc ...) :furieux:
précision : quand je mets le style directement dans ma page, ça marche, mais c'est pas ce que je cherche à faire
merci pour votre aide :pleure: