est-ce que le else fonctionne?Une piste très intéressante que je recommande : les commentaires conditionnels.
merci
PS j'ai fait citation vue que l'on a changer de page.
est-ce que le else fonctionne?Une piste très intéressante que je recommande : les commentaires conditionnels.
Va voir le lien que je viens de donner : tu verras que ça n'a aucun rapport avec les conditions en JavaScript ou en PHP.est-ce que le else fonctionne?
Code : Tout sélectionner
<div class="c1">
<div id="navcontainerh">
<b class="bar1"> </b>
<b class="bar"><a href="./">ACCUEIL</a></b>
<b class="bar"><a href="comment-acheter.php">Comment acheter?</a></b>
<b class="bar"><a href="panier.php">Panier</a></b>
<b class="bar"><a href="contact.php">Contact</a></b>
</div></div>Code : Tout sélectionner
div.c1 {
text-align : center;
}
#navcontainerh {
width : 99%;
height : 50px;
border : 6px ridge gold;
background : url("images/fresq1.png");
}
#navcontainerh b.bar1, b.bar {
display : inline;
float : left;
}
b.bar a {
padding : 0 20px;
text-decoration : none;
float : left;
height : 50px;
display : block;
line-height : 50px;
color : #FFCCCC;
font-size : 14px;
}
b.bar a:hover, b.bar a:active {
padding : 0 20px;
text-decoration : none;
background : url("images/fresq.png");
text-align : left;
height : 50px;
color : #CC33FF;
}
b.bar a:active {
line-height : 46px;
display : block;
text-decoration : none;
text-align : left;
height : 50px;
padding : 0 19px;
border-top : 3px solid #D76B00;
border-left : 1px solid #D76B00;
border-right : 1px solid #D76B00;
border-bottom : 1px solid #D76B00;
}Code : Tout sélectionner
a {
text-align: center;
}Code : Tout sélectionner
div {
width: 50%;
margin-right: auto;
margin-left: auto;
}Code : Tout sélectionner
<div id="navcontainerh">
<b class="bar"><a href="./">ACCUEIL</a></b>
<b class="bar"><a href="comment-acheter.php">Comment acheter?</a></b>
<b class="bar"><a href="panier.php">Panier</a></b>
<b class="bar"><a href="contact.php">Contact</a></b>
</div>Code : Tout sélectionner
#navcontainerh {
width : 99%;
height : 50px;
border : 6px ridge gold;
background : url("images/fresq1.png");
white-space: nowrap;
}C'est Victor mon prénom.totor
Tu te compliques la vie en rendant ton code complexe. Je me demande si une remise à plat de ton code (HTML et CSS) ne serait pas nécessaire.en ajoutant un bloc dans mon div
Code : Tout sélectionner
<div id="navcontainerh">
<b class="bar"><a href="./">ACCUEIL</a></b>
<b class="bar"><a href="comment-acheter.php">Comment acheter?</a></b>
<b class="bar"><a href="panier.php">Panier</a></b>
<b class="bar"><a href="contact.php">Contact</a></b>
</div>Code : Tout sélectionner
<ul id="navcontainerh">
<li><a href="./">ACCUEIL</a></li>
<li><a href="comment-acheter.php">Comment acheter?</a></li>
<li><a href="panier.php">Panier</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>Code : Tout sélectionner
#navcontainerh {
font-weight: bold;
list-style: none;
padding: 0;
margin: 0;
}
#navcontainerh li {
display: inline;
padding: 0;
margin: 0 0.25em; /* Pour espacer les liens entre eux */
}Code : Tout sélectionner
<table id="navcontainerh" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="center">
<table id="navcontain" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="./">ACCUEIL</a></td>
<td><a target="_blank" href="condition-vente.php">condition de vente</a></td>
<td><a href="comment-acheter.php">Comment acheter ?</a></td>
<td><a href="panier.php">Panier</a></td>
<td><a href="contact.php">Contact</a></td>
</tr>
</table>
</td>
</tr>
</table>Code : Tout sélectionner
#navcontainerh {
width : 100%;
height : 50px;
border : 6px ridge #FF5C0F;
background : url("images/fresq1.png");
}
#navcontain tr td a {
padding : 0 20px;
text-decoration : none;
font-weight: bold;
float : left;
height : 50px;
display : block;
line-height : 50px;
color : #FFCCCC;
font-size : 14px;
}
#navcontain tr td a:hover, #navcontainerh tr td a:active {
padding : 0 20px;
text-decoration : none;
background : url("images/fresq.png");
text-align : left;
height : 50px;
color : #CC33FF;
}
#navcontain tr td a:active {
line-height : 46px;
display : block;
text-decoration : none;
text-align : left;
height : 46px;
padding : 0 19px;
border-top : 3px solid red;
border-left : 1px solid red;
border-right : 1px solid red;
}$nb_page1=mysql_query("SELECT COUNT(*) FROM `partenaire`") or die(mysql_error());
$nb_page2=mysql_fetch_array($nb_page1);
$nb_page=$nb_page2['COUNT(*)']/20;
PARTENAIRE:
<?php
$i=0; $page2=0;
for($i=0; $i<$nb_page; $i++)
{
$page2=$page2+1;
echo' <a target="_blank" href="partenaire-'.$page2.'.php" alt="liste des sites ayant un lien avec la rose de l'orient">
partenaire '.$page2.'</a> ';
}
?>
http://validator.w3.org/check?uri=http% ... oup=0&st=1