J'ai ce code là :
Code : Tout sélectionner
<html>
<head>
</head>
<body>
<div id="body">
<?php
foreach ($table AS $row)
{
echo '<div id="titleBillet">';
echo $row['title'];
echo '</div>';
echo '<div id="contentBillet">';
echo $row['content'];
echo '</div>';
}
?>
</div>
</body>
</html>
voilà une partie de mon CSS :
Code : Tout sélectionner
#contentBillet
{
display: block;
width: 900px;
height: 200px;
background-color: white;
margin: auto;
margin-top: -20px;
}
#titleBillet
{
width: 900px;
height: 40px;
background-image: url('../img/titleBillet.gif');
margin: auto;
margin-top: 20px;
color: #BFBFBF;
font-size: 25px;
font-family: century gothic;
}
Auriez vous une solution svp ?
Cordialement,