Pb executer css dans php
moidebutant
Messages postés
16
Statut
Membre
-
giheller -
giheller -
Bonjour,
voici mon code php
for ($i=0;$i<$nombrelignes;$i++)
{echo "<li class=\"liste\">$tab[$i]</a></li>";
$req1="select titre from PdfLIen where dossier=\"$tab[$i]\" Order by titre";
if($result = mysql_query($req1))
{echo "<table>";
while($titre=mysql_fetch_row($result))
{$lien="ressources/".$tab[$i]."/".$titre[0];
echo "<tr><td><img src=\"img/pdf.gif\"/></td>".
"<td class=\"element_pdf\"><a href=$lien>$titre[0]</td></tr>";
}
echo "</table>";
}
}
mon css
.Liste
{ list-style-type: square;
text-decoration: none;
/*color: #15a99b; */
color: #4f9d43;
font-style: italic;
margin-bottom:8px;
margin-left:20px;
font-weight:bold;
}
.liste a
{ text-decoration: none;
color: #15a99b;
margin-top:8px;
margin-left:2px;
}
.Liste a:hover
{
font-style: italic;
margin-left:30px;
margin-top:8px;
font-weight:bold;
color: #4f9d43;
}
.Element_pdf
{
color: #8d9395;
text-decoration: none;
padding-left: 5px;
font-size: 12px;
}
.Element_pdf a
{
color: #8d9395;
text-decoration: none;
padding-left: 5px;
font-size: 12px;
}
apres execution le css, n'est pas execute pas de mise en forme, s'il y a erreur dans mes codes ou une solution pour mon pb, priere me l'indiquer.
Merci.
voici mon code php
for ($i=0;$i<$nombrelignes;$i++)
{echo "<li class=\"liste\">$tab[$i]</a></li>";
$req1="select titre from PdfLIen where dossier=\"$tab[$i]\" Order by titre";
if($result = mysql_query($req1))
{echo "<table>";
while($titre=mysql_fetch_row($result))
{$lien="ressources/".$tab[$i]."/".$titre[0];
echo "<tr><td><img src=\"img/pdf.gif\"/></td>".
"<td class=\"element_pdf\"><a href=$lien>$titre[0]</td></tr>";
}
echo "</table>";
}
}
mon css
.Liste
{ list-style-type: square;
text-decoration: none;
/*color: #15a99b; */
color: #4f9d43;
font-style: italic;
margin-bottom:8px;
margin-left:20px;
font-weight:bold;
}
.liste a
{ text-decoration: none;
color: #15a99b;
margin-top:8px;
margin-left:2px;
}
.Liste a:hover
{
font-style: italic;
margin-left:30px;
margin-top:8px;
font-weight:bold;
color: #4f9d43;
}
.Element_pdf
{
color: #8d9395;
text-decoration: none;
padding-left: 5px;
font-size: 12px;
}
.Element_pdf a
{
color: #8d9395;
text-decoration: none;
padding-left: 5px;
font-size: 12px;
}
apres execution le css, n'est pas execute pas de mise en forme, s'il y a erreur dans mes codes ou une solution pour mon pb, priere me l'indiquer.
Merci.
Configuration: Windows XP Firefox 2.0.0.13