IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

Comment faire superposer mon texte à l'intérieur du menu ?


Sujet :

HTML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    36
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 36
    Par défaut Comment faire superposer mon texte à l'intérieur du menu ?
    Bonjour,

    voici mon problème, dont je sais pas trop si je dois le poster dans cette catégorie.

    Voilà, j'ai un menu côté gauche avec login et mot de pass. Lorsque les membres se connectent : leur pseudo et le nombre de points apparait seulement il ne s'écrit pas sur le menu mais entre pourquoi ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
     
     <td height="506" width="9"></td>
              <td valign="top" width="170">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" height="358">
                  <!--DWLayoutTable-->
                  <tr>
                    <td width="170" height="24" valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" height="1">
                        <!--DWLayoutTable-->
                        <tr>
                          <td width="170" height="24" background="petit_1.png">
                          <font face="Tribal Two">&nbsp;&nbsp; </font></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="80" valign="top">
    	        <table width="100%" border="0" cellpadding="0" cellspacing="0" background="petit_2.png" height="119" style="border-collapse: collapse" bordercolor="#111111">
            <!-- debut boite -->
    <?php
    if($pseudoem == NULL) {
    ?>
        <form method="POST" action="login.php">
            	<tr>
      		                <td align="left" class="tinytext" height="37">
                        <p align="left"> <span class="Style1">&nbsp;
    		    <font color="#000000">&nbsp;&nbsp;&nbsp;Pseudo:</font></span>
    		<center><input type="text" name="loginq" value size="20" style="border-style: groove; border-width: 1"></center>
    		</td>
                        </tr>
                        <tr>
                        <td align="left" class="tinytext" height="37">
                        <p align="left"><span class="Style1">&nbsp;
                        <font color="#000000">&nbsp;&nbsp;&nbsp; Password :</font></span>
                        <center><input type="password" name="passeq" value size="20" style="border-style: groove; border-width: 1"></center>
              	    </td>
                        </tr>
                        <tr>
                        <td align="right" height="28">
                        <div align="center"><br>
              <input type="submit" name="Submit" value="Connection">
              	</div>
                 	  </form>
     
    	        <?php } else { ?>
    <div align="center">
    <b><? echo $pseudoem; ?></b><br>
    <b><?php if ($vip_etat_a >='500') { echo '<img src= "images/vip_saphir.gif" width="45" height="53">'; } else if ($vip_etat_a >='100') { echo '<img src= "images/vip_emeraude.gif" width="45" height="53">'; } else if ($vip_etat_a >='60') { echo '<img src= "images/vip_or.gif" width="45" height="53">'; } else if ($vip_etat_a >='45') { echo '<img src= "images/vip_argent.gif" width="45" height="53">'; } else if ($vip_etat_a >='20') { echo '<img src= "images/vip_bronze.gif" width="45" height="53">'; } ?></b><br>
    <b>Points : </b> <?php echo $totalP; ?><br>
    <b>Gothipass: </b><?php echo $totalB; ?><br>
    <b><?php echo $nb_jours; ?><?php if ($nb_jours =='1') { echo 'er Jour'; } else { echo 'ème jour'; } ?></b><br>
    <a href="deconection.php"><b>Déconnection</b></a>
    <?php } ?>
              	 </td>
                        </tr>
                                                    </table></td>
                  </tr>
                  <tr>
                    <td height="15" valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="13">
     
     
    <!-- fin boite -->
                        <tr>
                          <td width="170" height="13" background="petit_3.png"></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="45" valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="48">
                        <!--DWLayoutTable-->
    Je vous mets ce que cela me fait pour que vous puissiez voir et m'aidez, merci.



    Donc je voudrai qu'il n'y ai pas cette espace gris foncé mais que cela écrive sur le menu en gris clair, comment faire svp ?

  2. #2
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 494
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 494
    Par défaut
    Rajoute une classe à ta div :
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <div align="center">
    ...
    </div>
    et donne lui un background avec le fond souhaité, tout simplement.

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    36
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 36
    Par défaut
    Arff non !! j'y suis pas arrivé à faire

    Comment l'appliquer à mon script pour pseudo, points

  4. #4
    Membre averti
    Profil pro
    Inscrit en
    Juillet 2003
    Messages
    38
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations forums :
    Inscription : Juillet 2003
    Messages : 38
    Par défaut
    lorsque tu fais des conditions if ....else en php, tu ne peut pas alterner entre html et php. Tu dois tout inclure en echo "blablabla";

    Essaie ca, je met ma main a couper que ca marche:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
     
     
            <!-- debut boite -->
    <?php
    if($pseudoem == NULL) {
     
        echo '<form method="POST" action="login.php">
                    <tr>
                                    <td align="left" class="tinytext" height="37">
                            <p align="left"> <span class="Style1">&nbsp;
                            <font color="#000000">&nbsp;&nbsp;&nbsp;Pseudo:</font></span>
                                    <center><input type="text" name="loginq" value size="20" style="border-style: groove; border-width: 1">
                                    </center>
                    </td>
                        </tr>
                        <tr>
                        <td align="left" class="tinytext" height="37">
                        <p align="left"><span class="Style1">&nbsp;
                        <font color="#000000">&nbsp;&nbsp;&nbsp; Password :</font></span>
                        <center>
                                            <input type="password" name="passeq" value size="20" style="border-style: groove; border-width: 1">                                     </center>
                        </td>
                        </tr>
                        <tr>
                        <td align="right" height="28">
                        <div align="center"><br>
              <input type="submit" name="Submit" value="Connection">
                    </div>
                      </form>';
        
                     } 
                             
    else { 
            echo '<div align="center">';
            echo '<b>'.$pseudoem.'</b><br>';
            echo '<b>'; 
            
     
            if ($vip_etat_a >='500') 
                    { echo '<img src= "images/vip_saphir.gif" width="45" height="53">'; }
            else if ($vip_etat_a >='100') 
                    { echo '<img src= "images/vip_emeraude.gif" width="45" height="53">'; } 
            else if ($vip_etat_a >='60') 
                    { echo '<img src= "images/vip_or.gif" width="45" height="53">'; } 
            else if ($vip_etat_a >='45') 
                    { echo '<img src= "images/vip_argent.gif" width="45" height="53">'; } 
            else if ($vip_etat_a >='20') 
                    { echo '<img src= "images/vip_bronze.gif" width="45" height="53">'; } 
                    
            echo '</b><br><b>Points : </b>'.$totalP.'<br>
                            <b>Gothipass: </b>'.$totalB.'<br><b>'.$nb_jours; 
     
     if ($nb_jours =='1') 
                    { echo 'er Jour'; } 
            else { echo 'ème jour'; } 
            
            echo '</b><br><a href="deconection.php"><b>Déconnection</b></a>';
            
            } 
        echo'        </td>
                        </tr>
                                                    </table></td>
                  </tr>
                  <tr>
                    <td height="15" valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="13">';
     
     ?>
    <!-- fin boite -->
    <?
            echo '<tr>
                         <td width="170" height="13" background="petit_3.png"></td>
                   </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="45" valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="48">';
    ?>
                        <!--DWLayoutTable-->

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    36
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 36
    Par défaut
    Merci pour vos réponses !!

    J'ai réussi à résoudre donc fallait juste rajouter

    <img src="petit_2.png" bordercolor="#111111"><td width="170" height="52" align="center" valign="middle">

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Formulaire] Comment faire défiler un texte ?
    Par Daniela dans le forum IHM
    Réponses: 7
    Dernier message: 27/05/2014, 12h51
  2. [Access 2003] Comment faire clignoter un texte
    Par javelot69 dans le forum IHM
    Réponses: 3
    Dernier message: 08/07/2007, 21h07
  3. Réponses: 5
    Dernier message: 07/05/2007, 11h44
  4. Réponses: 4
    Dernier message: 28/07/2006, 14h10
  5. [XSL]Comment faire ceci ?? Mon for-each n'affiche pas tout !
    Par Devil666 dans le forum XSL/XSLT/XPATH
    Réponses: 4
    Dernier message: 27/07/2005, 16h04

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo