Partage
  • Partager sur Facebook
  • Partager sur Twitter

style d'un lien

    28 janvier 2006 à 23:18:15

    bonjour,
    voila j'ai du mal avec le style d'un lien :(
    En fait en haut de ma page j'ai :

    <head>
    <style>
    A:link { color:"#000000" }
    A:visited { color:"#000000" }
    </style>
    <head>


    et plus bas j'ai :

    $lien_interne = '<span style="color: '.$police_couleur.'; text-decoration: none; font-size: '.$police_taille.';"<div align="left">'.$police_style.'<a href = "'.$chemin_page.'">'.$nom_lien_page.'</a></strong></i></div></span>';


    dslé pour le php mais ce qui m'interesse c'est le html. Alors deja je ne comprends pas pourquoi le none de text-decoration ne fasse pas effet (les liens sont tjrs soulignés) et je ne comprends pas pourquoi la couleur du lien ne change pas il reste noir qui est la couleur qui est dans mon head et pas la couleur renvoyé en php :(
    a savoir que la taille de la police elle fonctionne corectement.

    Merci de m'éclairer sur ce code html.
    • Partager sur Facebook
    • Partager sur Twitter
      28 janvier 2006 à 23:32:23

      ben deja tu melange tes balises html, tu met une balises block dans une balise inline. ensuite tu ferme des balises pas ouverte.

      file nous un lien, et le code html final (celui de la page generer).
      • Partager sur Facebook
      • Partager sur Twitter
        29 janvier 2006 à 13:10:18

        Voici le code donné par ma page html


        <left><i>Connecté en tant que : <b>manustarfoot</b></i>
                        (<a href="admin_index.php">Admin</a>,
                       <a href="../membres/profil/profil.php">Mon Profil</a>,
                       <a href="../deconnexion.php">Deconnexion</a>)</left><html>
        <head>
        <title>Rédiger une news</title>
        <style TYPE="text/css">
        BODY {
        scrollbar-face-color: #8A26AB;
        scrollbar-shadow-color: #FFFFFF;
        scrollbar-highlight-color: #FF99FF;
        scrollbar-3dlight-color: white;
        scrollbar-darkshadow-color: black;
        scrollbar-track-color: #3366CC;
        scrollbar-arrow-color: #FFFFFF 
        }
        A:link { color:"#000000" }
        A:visited { color:"#000000" }
        .Style2 {
                font-size: 9px;
                font-style: italic;
        }
        .Style7 {font-size: 12px}
        </style>
        <script language="javascript">
        function smylies(texte)
                {
                document.formulaire.contenu.value+=" "+texte;
                }
        function tableau(texte)
                {
                document.formulaire.contenu.value+=" "+texte;
                }
        </script>
        </head>

        <body background="../gfx/fond.jpg">
        <p>
        <div align="center">

                        <table width="530" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
            <tr>
              <td width="530" background="../gfx/banniere_news.jpg" height="21" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <!--DWLayoutTable-->
                  <tr>
                    <td width="530" height="21" align="center" valign="middle"><font color="black" size="2"><b>Aper&ccedil;u</b>
                    </font>&nbsp;</td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td height="21" valign="top" background="../gfx/fond_news.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="7" height="21">&nbsp;</td>
                    <td width="366" valign="top"><p><font color="white">
                        <span style="color: FFFFFF; text-decoration: none; font-size: 14px;"<div align="left"><e><a href = "http://handballbruz.free.fr/connectes.php">cliquez ici</a></strong></i></div></span>                                </font>
                    </td>
                    <td width="7">&nbsp;</td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td height="21" valign="top" background="../gfx/banniere_news.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                  <tr>
                    <td width="10" height="21" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                        <tr>
                          <td width="10" height="21" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                        </tr>
                      </table></td>
                    <td width="371" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                  </tr>
                </table></td>
            </tr>
          </table><p>
          <form method="get" action="rediger_news.php">
                        <input type="hidden" name="id_news" value="0">
                        <input type="hidden" name="creation_apercu" value="lien_interne">
                <table width="450" border="1">
                <tr align="center" valign="middle">
                <td colspan="3" valign="top"><strong>Choix de la police</strong></td>
                <tr>
                <td width="75" align="center" valign="middle"><em><strong>Couleur</strong></em></td>
                <td width="75" align="center" valign="middle"><em><strong>Taille</strong></em></td>
                <td width="75" align="center" valign="middle"><em><strong>Style</strong></em></td>
                </tr>
                <tr>
                <td height="50" align="left" valign="top">
                        <input type="radio" name="police_couleur" value="FFFFFF" checked="checked">
                        Blanc<br>
                        <input type="radio" name="police_couleur" value="000000" >
                        Noir<br>
                        <input type="radio" name="police_couleur" value="C18BD2" >
                        Violet<br>
                        <input type="radio" name="police_couleur" value="FF00FF" >
                        Rose<br>
                        <input type="radio" name="police_couleur" value="FF0000" >
                        Rouge<br>
                        <input type="radio" name="police_couleur" value="FFFF00" >
                        Jaune</td>
                <td height="50" align="left" valign="top">
                        <input type="radio" name="police_taille" value="14px" checked="checked">
                        14 px<br>
                        <input type="radio" name="police_taille" value="12px" >
                        12 px<br>
                        <input type="radio" name="police_taille" value="16px" >
                        16 px</td>
                <td height="50" align="left" valign="top">
                        <input type="radio" name="police_style" value="&lt;e&gt;" checked="checked">
                        <span style="font-size:13px">Normal</span><br>
                        <input type="radio" name="police_style" value="&lt;strong&gt;" >
                        Gras<br>
                    <input type="radio" name="police_style" value="&lt;i&gt;" >
                    Italic<br>
                        <input type="radio" name="police_style" value="&lt;i&gt;&lt;strong&gt;" >
                    <span style="font-size:10px">Gras/Italic</span></td>
                </tr>
                </table>
                <br>
                        <input type="submit" value="Aperçu">
          </form>
                <center><a href="rediger_news.php?modifier_news=0"><img src="../gfx/boutons/valideroff.jpg" height="25" width="95" border="0" onMouseOver="javascript:
                                  this.src='../gfx/boutons/valideron.jpg';"
        onMouseOut="javascript: this.src='../gfx/boutons/valideroff.jpg';">
        </a></center>
        </body>
        </html>
        • Partager sur Facebook
        • Partager sur Twitter
          3 février 2006 à 15:54:17

          personne pour ce petit pb ?? :(
          • Partager sur Facebook
          • Partager sur Twitter
            3 février 2006 à 16:11:07

            Si c'est le soulignement que tu veux enlever de tes liens c'est ca que tu dois mattre das ton <acronym title="Cascading Style Sheet">CSS</acronym>:
            a:link {
            text-decoration: none;
            }


            Si tu veux enlever le soulignement que sur certains liens, c'est ceci que tu dois faire:
            <a style="text-decoration:none;">Ton lien</a>

            • Partager sur Facebook
            • Partager sur Twitter
              3 février 2006 à 16:16:51

              Salut,

              As-tu fais un echo de $lien_interne, pour vérifier si tout est correct ?

              Je pense que c'est pas bon :


              <td width="366" valign="top"><p><font color="white">
                              <span style="color: FFFFFF; text-decoration: none; font-size: 14px;"<div align="left"><e><a href = "http://handballbruz.free.fr/connectes.php">cliquez ici</a></strong></i></div></span>                                </font>
                          </td>


              Tu as un <span> non fermé par >, un <div> dans un <span>, un </strong> fermé et non-ouvert, un <p> ouvert et non fermé, et un <e> ???

              Enfin bref, beaucoup de choses ne vont pas.
              • Partager sur Facebook
              • Partager sur Twitter
                9 février 2006 à 19:22:18

                merci pour vos reponses :) je vais voir ça dslé mais je ne peut repondre que le week end
                • Partager sur Facebook
                • Partager sur Twitter

                style d'un lien

                × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
                × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
                • Editeur
                • Markdown