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

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  [html] coller une image a un tableau

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[html] coller une image a un tableau

n°1904468
sensitives​hooter
Posté le 10-07-2009 à 16:49:58  profilanswer
 

Bonjour,
 
J'ai créé un tableau en html et je voudrais pouvoir y coller de chaque coté à l'extérieur une image jpg. Je precise que je suis une bille en html ...
 
voilà mon tableau avec les deux jpg :
 
<img src="Arabesque-3.jpg" width="427" height="600"/>
<table width="604" height="604" border="0" align="center" cellspacing="1" bgcolor="#FFFFFF">
  <tbody><tr align="center" valign="middle">
    <td height="200" width="200"><div align="center"><span class="Style2"><a href="au_fil_de_l_eau.htm"><img src="acc_JPG/acc_noir_au_fil_de_l_eau.jpg" width="200" height="200" border="0" /></a></span></div></td>
    <td height="200" width="200"><div align="center"><a href="in.htm"><img src="acc_JPG/acc_noir_in.jpg" width="200" height="200" border="0" /></a></div></td>
    <td width="200" height="200" align="center" valign="middle"><div align="center"><a href="a_contre_jour.htm"><img src="acc_JPG/acc_noir_a_contre_jour.jpg" width="200" height="200" border="0" /></a></div></td>
  </tr>
  <tr align="center" valign="middle">
    <td height="200" width="200"><a href="spirit.html"><img src="acc_JPG/acc_noir_spirit.jpg" width="200" height="200" border="0" /></a></td>
    <td bgcolor="#FFFFFF" height="200" width="200"><p>      <strong>SenS'</strong></p>
      <p><strong class="azer">Photographie</strong></p></td>
    <td width="200" height="200" align="center" valign="middle"><div align="center"><a href="sport.htm"><img src="acc_JPG/acc_noir_sport.jpg" width="200" height="200" border="0" /></a></div></td>
  </tr>
  <tr align="center" valign="middle">
    <td height="200" width="200"><a href="publicite.html"><img src="acc_JPG/acc_noir_publicite.jpg" width="200" height="200" border="0" /></a></td>
    <td height="200" width="200"><a href="history.html"><img src="acc_JPG/acc_noir_history.jpg" width="200" height="200" border="0" /></a></td>
    <td width="200" height="200" align="center" valign="middle"><div align="center"><a href="contact.html"><img src="acc_JPG/acc_noir_contact.jpg" width="200" height="200" border="0" /></a></div></td>
  </tr>
</tbody></table>
<img src="Arabesque-2.jpg" width="427" height="600"/>

mood
Publicité
Posté le 10-07-2009 à 16:49:58  profilanswer
 

n°1904518
Pascal le ​nain
Posté le 10-07-2009 à 21:30:09  profilanswer
 

Salut, je veux faire une page internet, tu la fais pour moi ? Attention, ne m'explique rien, c'est pas la peine, je vais pas m'emmerder à apprendre le html.
Ton code est immonde.

n°1904521
billgatesa​nonym
Posté le 10-07-2009 à 22:14:26  profilanswer
 

Ne faites pas attention à 30% des intervenants viennent pour faire des critiques négatives au lieu de faire des critiques positives ou d'aider.
 
[:edhelas] Une solution (que j'ai testée) consiste à inclure la table dans une autre table :

<html>
<body>
 
<table noborder>
<tr>
<td>
<img src="Arabesque-3.jpg" width="427" height="600"/>  
</td>
<td>
 
<table width="604" height="604" border="0" align="center" cellspacing="1" bgcolor="#FFFFFF">  
  <tbody><tr align="center" valign="middle">  
    <td height="200" width="200"><div align="center"><span class="Style2"><a href="au_fil_de_l_eau.htm"><img src="acc_JPG/acc_noir_au_fil_de_l_eau.jpg" width="200" height="200" border="0" /></a></span></div></td>  
    <td height="200" width="200"><div align="center"><a href="in.htm"><img src="acc_JPG/acc_noir_in.jpg" width="200" height="200" border="0" /></a></div></td>  
    <td width="200" height="200" align="center" valign="middle"><div align="center"><a href="a_contre_jour.htm"><img src="acc_JPG/acc_noir_a_contre_jour.jpg" width="200" height="200" border="0" /></a></div></td>  
  </tr>  
  <tr align="center" valign="middle">  
    <td height="200" width="200"><a href="spirit.html"><img src="acc_JPG/acc_noir_spirit.jpg" width="200" height="200" border="0" /></a></td>  
    <td bgcolor="#FFFFFF" height="200" width="200"><p>      <strong>SenS'</strong></p>  
      <p><strong class="azer">Photographie</strong></p></td>  
    <td width="200" height="200" align="center" valign="middle"><div align="center"><a href="sport.htm"><img src="acc_JPG/acc_noir_sport.jpg" width="200" height="200" border="0" /></a></div></td>  
  </tr>  
  <tr align="center" valign="middle">  
    <td height="200" width="200"><a href="publicite.html"><img src="acc_JPG/acc_noir_publicite.jpg" width="200" height="200" border="0" /></a></td>  
    <td height="200" width="200"><a href="history.html"><img src="acc_JPG/acc_noir_history.jpg" width="200" height="200" border="0" /></a></td>  
    <td width="200" height="200" align="center" valign="middle"><div align="center"><a href="contact.html"><img src="acc_JPG/acc_noir_contact.jpg" width="200" height="200" border="0" /></a></div></td>  
  </tr>  
</tbody></table>  
 
</td>
<td>
<img src="Arabesque-2.jpg" width="427" height="600"/>
</td>
</tr>
</table>
 
</body>
</html>


n°1904654
tpierron
Posté le 12-07-2009 à 00:52:35  profilanswer
 

[:jeebus] Oué sortir un code aussi pourri en 2009, faut oser.
 
Les générations futures qui liront ces lignes vont finir par croire qu'une cabale voulait la mort d'internet. Faire une soupe de balise pareille pour 8 liens et un titre.
[:prozac]
 
À l'arrache, la version CSS donne :

Code :
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2.                      "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5.  <style type="text/css">
  6.  a img { border: 0; }
  7.  body { background: url(Arabesque-3.jpg) no-repeat 0 0; padding: 0 0 0 427px; margin: 0; }
  8.  #mainpage { background: transparent url(Arabesque-2.jpg) no-repeat 100% 0; width:600px; height: 600px; padding-right: 427px;}
  9.  p#title { display: block; float: left; width: 200px; height: 200px; text-align: center; margin: 0; }
  10.  p#title strong { margin-top: 70px; display: block; }
  11.  a { display: block; float: left; width: 200px; height: 200px; margin: 0; padding: 0; }
  12.  </style>
  13. </head>
  14. <body>
  15. <div id="mainpage">
  16.  <a href="au_fil_de_l_eau.htm"><img src="acc_JPG/acc_noir_au_fil_de_l_eau.jpg" width="200" height="200"></a>
  17.  <a href="in.htm"><img src="acc_JPG/acc_noir_in.jpg" width="200" height="200"></a>
  18.  <a href="a_contre_jour.htm"><img src="acc_JPG/acc_noir_a_contre_jour.jpg" width="200" height="200"></a>
  19.  <a href="spirit.html"><img src="acc_JPG/acc_noir_spirit.jpg" width="200" height="200"></a>
  20.  <p id="title"><strong>SenS'<br>Photographie</strong></p>
  21.  <a href="sport.htm"><img src="acc_JPG/acc_noir_sport.jpg" width="200" height="200"></a>
  22.  <a href="publicite.html"><img src="acc_JPG/acc_noir_publicite.jpg" width="200" height="200"></a>
  23.  <a href="history.html"><img src="acc_JPG/acc_noir_history.jpg" width="200" height="200"></a>
  24.  <a href="contact.html"><img src="acc_JPG/acc_noir_contact.jpg" width="200" height="200"></a>
  25. </div>
  26. </body>
  27. </html>


 
Testé juste sur FF, parce que bon, tout le monde à l'air de s'en fouttre.


Message édité par tpierron le 12-07-2009 à 00:55:36
n°1904678
sensitives​hooter
Posté le 12-07-2009 à 13:06:40  profilanswer
 

Excusez moi de ne pas avoir fait mes études dans la programmation informatique ....  je fait avec les moyens du bord! Soit pas grand chose ...
 
En tout cas merci pour ceux qui ont bien voulu mettre des réponses!

n°1905087
Pascal le ​nain
Posté le 14-07-2009 à 17:33:32  profilanswer
 

En fait, ce qui m'a énervé, ce n'est pas le fait que tu soit nul en informatique, c'est le fait que tu précises :

Citation :

Je precise que je suis une bille en html ...


 
Ce qui signifie
 

Citation :

Me les brise pas avec tes leçons, je veux une solution

n°1905214
pataluc
Posté le 15-07-2009 à 10:40:31  profilanswer
 

Pascal le nain a écrit :

En fait, ce qui m'a énervé, ce n'est pas le fait que tu soit nul en informatique, c'est le fait que tu précises :

Citation :

Je precise que je suis une bille en html ...


 
Ce qui signifie
 

Citation :

Me les brise pas avec tes leçons, je veux une solution



je te trouve un peu dur, ca peut aussi vouloir dire: "il faut m'expliquer lentement" [:spamafote]


Message édité par pataluc le 15-07-2009 à 10:41:04
n°1905487
Pascal le ​nain
Posté le 15-07-2009 à 17:47:48  profilanswer
 

Non. Même un noob ne dit pas ca. Il faut dire :  
 
"Je débute mais j'ai une soif insatiable d'apprendre. J'ai déjà cherché ça, essayé ça." ;)


Message édité par Pascal le nain le 15-07-2009 à 17:48:48

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

  [html] coller une image a un tableau

 

Sujets relatifs
quel façon coder ce template épuré en CSS et html ?Macro excel 2007 remplir tableau recap
Ecrire une page html en vbs[C#] Convertir caractères spéciaux HTML
Tableau de commande sql a interpreterMatlab enregistrer image imtool avec contraste
Formulaire HTML & JS : un bouton pour changer tous les radiosPHP : Comparer valeur d'un tableau
[JavaScript] Cacher une ligne d'un tableau avec une hauteur à 0SQL Tableau analyse croisée sur une année glissante
Plus de sujets relatifs à : [html] coller une image a un tableau


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