bonjour,
j'ai un petit soucis sous Firefox. Le style css background-color ne s'applique pas lorsque les éléments DIV enfants sont flotant.
voici mon code fonctionnel sous IE:
Merci d'avance pour votre aide
  
Modifié par jparia (22 Dec 2009 - 18:39)
      
      
    j'ai un petit soucis sous Firefox. Le style css background-color ne s'applique pas lorsque les éléments DIV enfants sont flotant.
voici mon code fonctionnel sous IE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>test</title>
<style type="text/css">
<!--
	.divparent
	{
		width: 426px !important;
		width: 400px;
		font-weight: bold;	
		background-color: #ccc;
		color: #333;		
	}
	
	.divparent:hover
	{
		background-color: #999;
		color: #f00;
	}
	.divenfantgauche
	{
		float: left;
		width: 200px;
		padding: 3px;
		padding-left: 10px;
	}
	
	.divenfantdroit
	{
		float: right;
		width: 200px;
		padding: 3px;
		padding-left: 10px;
	}
	
-->
</style>
</head>
<body>
	<div class="divparent">
		<div class="divenfantgauche">div flotant gauche</div>
		<div class="divenfantdroit">div flotant droit</div>
	</div>
	<div> </div>
	<div>
		<div class="divparent">
			<div>div non flotant</div>
			<div>div non flotant</div>
		</div>
	</div>
</body>
</html>
Merci d'avance pour votre aide
  Modifié par jparia (22 Dec 2009 - 18:39)