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

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Modifier mon scrip pour mon image

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Modifier mon scrip pour mon image

n°1687053
DJ Neo42
Posté le 15-02-2008 à 17:52:16  profilanswer
 

bonjour voila mon petit probleme j ai un scrip pour ma new sur mon site et donc pour chaque new il y a une image qui se me en fond.
Moi je voudrai si c'est possible et si surtout quelqu'un c'est faire que cette image soit en haut a droit et que le texte ne lui monte pas dessus!!
L image en question se nome ((((milieu1.jpg))))
voila le script:  
 

Citation :

function news($data)
{
 
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5;
 
 
echo" <table width=\"476\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor1\">
 <tr bgcolor=\"$bgcolor2\"><td>
 <table width=\"476\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>
 <td height=\"24\" background=\"themes/sky1/images/haut1.gif\">
 <table width=\"100%\" height=\"10\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
 <tr><td width=\"510\" align=\"center\"><font color=\"black\"><span style=\"font-size:12pt;\"><B><i>$data[titre]</i></B></font></td></span>
 </tr></table></td></tr></table></td></tr><tr bgcolor=\"$bgcolor2\">
 <td background=\"themes/sky1/images/milieu1.jpg\"
 <table width=\"476\" height=\"10\" border=\"0\" cellspacing=\"10\" cellpadding=\"0\">
 <tr><td><font color=\"white\"><b>"._NEWSPOSTBY." <a href=\"index.php?file=Members&op=detail&autor=$data[auteur]\">$data[auteur]</a>
 &nbsp;"._THE." $data[date] "._AT." $data[heure]<br><br>$data[image]<br>$data[texte]</b></font></td></tr></table></td></tr></table>
 <table width=\"476\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"16\">
 <tr bgcolor=\"$bgcolor2\">
 <td width=\"110\" height=\"16\" background=\"themes/sky1/images/bas1.gif\" align=\"right\">  
 <table width=\"476\" height=\"24\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
 <tr><td width=\"110\" align=\"right\"> <a href=\"index.php?file=News&op=index_comment&news_id=$data[id]\">
 <font face=\"Arial\" color=\"black\">"._NEWSCOMMENT."</a> ($data[nb_comment])</font></td>
 <td width=\"400\" align=\"right\">$data[printpage] $data[friend]&nbsp;&nbsp;&nbsp;</font>
 </td></tr></table></td></tr></table><BR>";

mood
Publicité
Posté le 15-02-2008 à 17:52:16  profilanswer
 

n°1690563
yann39
⛅⏰♫♪☹☕
Posté le 22-02-2008 à 11:41:04  profilanswer
 

Salut,
 
hm tu ne veut donc plus l'avoir en background ?
 
A vu d'oeil je dirais au lieu de :

Code :
  1. <td background=\"themes/sky1/images/milieu1.jpg\">


mettre :

Code :
  1. <td>
  2. <img src='themes/sky1/images/milieu1.jpg' style='margin-left:300px; margintop:5px;' alt=''/>


 
margin-left correspond à la distance entre le bord gauche de l'image et le bord gauche du tableau, margin-top la distance entre le bord haut de l'image et le bord haut du tableau. A toi de règler ça au mieux.
 
Et pourquoi ne met-tu pas des ' au lieu de \", ça serait plus lisible.
Et pour info <td background=\"themes/sky1/images/milieu1.jpg\"> ce n'est pas valide W3C, il faut préférer <td style=\"background-image:url('themes/sky1/images/milieu1.jpg');\">  
 
;)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Modifier mon scrip pour mon image

 

Sujets relatifs
[Python] Conso CPU/Chargement ImageProblème d'alignement d'image avec CSS
[Ocaml-Sdl] Transformation d'une image en nuance de gris[Debutant] Modifier le code source de popa3d
Image transparente au passage de la sourisProblème avec l'auto-resize d'une image dans opera
Modifier un script de compte a rebour[Image]probleme getWidth getHeight
Enregistrer une image avec php[Javascript] Rotation image: problème de alt
Plus de sujets relatifs à : Modifier mon scrip pour mon image


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