Bild positionierung



  • Hallo

    Ich habe ein HTML-Gerüst, das für meine News ist und je mehr Text in der Tabelle dargestellt werden soll, desto weiter rutscht das Bild links vom Text nach unten. Habe schon mit der Position des Bildes gearbeitet, aber das hatte nicht funktioniert. Ich möchte, dass das Bild oben bleibt.
    Hatte übrigens auch schon eine Zelle zum Bild hinzugefügt und dann mit rowspan versucht das Bild durch die untere tabelle oben zu halten, das funktioniert aber auch nicht. Vielleit könnt ihr mi ja helfen.

    Hier ist mein Gerüst mit PHP:

    <table id="head">
     <tr>
      <td id="head_cell1">&nbsp;•'.$row2['title'].'</td>
      <td id="head_cell2">['.$row2['date'].']&nbsp;</td>
     </tr>
    </table>
    
    <table id="content" border-bottom: 2px solid #E5E5E5" bordercolor="#111111">
     <tr>
      <td id="content_cell1"><img border="0" src="'.$row2['picture'].'" width="150" height="100"></td>
      <td id="content_cell2">'.nl2br($row2['content']).'</td>
     </tr>
    </table>
    


  • Versuch's mal mit:

    <td id="content_cell1" valign="top"><img border="0" src="'.$row2['picture'].'" width="150" height="100"></td>
    


  • Ja das funktioniert.
    Dickes Dankeschön.


Anmelden zum Antworten