Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1536 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Bannière à centrer (PHP)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Bannière à centrer (PHP)

n°1531283
pitipiedki​pue
Posté le 20-03-2007 à 20:09:15  profilanswer
 

Salut à tous !!! :-)
 
Tout d'abord, regardez , si vous le voulez bien ^_^  
 

Code :
  1. <body>
  2. <table style="margin-left: auto;margin-right: auto;text-align: left; width:100%; height: 220px; background-image:url(themes/pitipiedkipue/images/noir.jpg);" cellpadding="0" cellspacing="0">
  3.  <tr style="vertical-align: center; text-align: left;">
  4.   <td style="width: 1px; height: 220px; background-image:url(themes/pitipiedkipue/images/noir.jpg);"></td>
  5.   <td style="width: 920px; height: 220px; background-image:url(themes/pitipiedkipue/images/header.jpg);"></td>
  6.   <td style="width: 1px; height: 220px; background-image:url(themes/pitipiedkipue/images/noir.jpg);"></td>
  7.  </tr>
  8. </table>
  9. <?php
  10. if(!$user[0])
  11. {
  12. ?>
  13. <table style="margin-left: auto;margin-right: auto;text-align: left; width: 920px; height: 32px; background-image:url(themes/pitipiedkipue/images/login.jpg);" cellpadding="0" cellspacing="0">
  14.  <tr style="vertical-align: middle; text-align: left;">
  15.   <form action="index.php?file=User&amp;nuked_nude=index&amp;op=login" method="post" enctype="multipart/form-data">
  16.   <td style="width: 9%; height: 100%;"></td>
  17.   <td style="width: 7%; height: 100%;"><input type="text" name="pseudo" value="<?php echo $user[2]; ?>" style="width: 75px; height:12px; FONT-SIZE: 9px;" /></td>
  18.   <td style="width: 12%; height: 100%;"><input type="hidden" name="remember_me" value="ok" /></td>
  19.   <td style="width: 12%; height: 100%;"><input type="password" name="pass" value style="width: 75px; height:12px; FONT-SIZE: 9px;" /></td>
  20.   <td style="width: 2%; height: 100%;"><input type="image" value="login" src="themes/pitipiedkipue/images/go.gif" style="border: 0px; width: 25px; height: 19px;" /></td>
  21.   <td style="width: 54%; height: 100%;"></td>
  22.   </form>
  23.  </tr>
  24. </table>
  25. <?php
  26. }else{
  27. ?>
  28. <table style="margin-left: auto;margin-right: auto; text-align: center; width: 920px; height: 32px; background-image:url(themes/pitipiedkipue/images/ss-headervide.jpg);" cellpadding="0" cellspacing="0">
  29.  <tr style="vertical-align: middle; text-align: left;">
  30.   <td style="width: 5%; height: 100%;"></td>
  31.   <td style="width: 80%; height: 100%; text-align: left;"><?php echo"" . _WELCOME . " " . $user[2] . " " . $on . " "; ?> <b>:</b> <a href="index.php?file=User" style="color:#ffffff">Compte</a> <b>/</b> <a href="index.php?file=User&nuked_nude=index&op=logout" style="color:#ffffff">Logout</a> </td>
  32.   <td style="width: 15%; height: 100%;"></td>
  33.  </tr>
  34. </table>


 
Voilà ^_^ vous voyez le problème :-) J'aimerai que mon image soit au centre... Et que le reste de la largeur de l'écran soit "noir"...
De plus, j'aimerai que la barre ou l'on doit insérer le login soit "débordée" elle aussi par du noir.
 
Vous voyez ce que je veux dire ?
Merci d'avance.

mood
Publicité
Posté le 20-03-2007 à 20:09:15  profilanswer
 

n°1531284
sielfried
Posté le 20-03-2007 à 20:12:09  profilanswer
 
n°1531373
nucl3arfl0
Better Call Saul
Posté le 21-03-2007 à 07:50:15  profilanswer
 

Tu vas te faire lyncher si tu utilises des tableaux pour l'affichage...

n°1531413
chani_t
From Dune
Posté le 21-03-2007 à 09:28:48  profilanswer
 

vi, affichage = html, mais surtout CSS.
 
Les tableaux c'est bien... pour afficher des tableaux :D... les CSS sont plus souples/puissant/évolutifs/facile à maintenir (rayer la mention inutile :D)...
 
De plus elle semble centrée ta bannière... non ?
Et puis ton champs de login, il se trouve ou ?


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Bannière à centrer (PHP)

 

Sujets relatifs
Php - retrouver mon imagePHP 4/5 -> Array (pas de liste ?) [Résolu]
[PHP] Redimensionnement qui écrase les EXIFS d'une imageBannière apparait 2 fois sous IE6
comment envoyer un mail (local en, easy PHP)sans nom de domaine..etcCréation de site avec banniére
[PHP] - Inclure un copyright sur une photo[PHP]Problème fonction
[CONSEIL] quel(s) livre(s) pour apprendre PHP ?PHP + exchange
Plus de sujets relatifs à : Bannière à centrer (PHP)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR