problem with website text

Associate
Joined
28 Jul 2003
Posts
1,987
Location
The Moon
I want to put text next to a picture, like it would be on an article on the BBC website but I am having problems doing this. Basically I want to have text around the image explaining it.
 
from my limited knowledge of using HTML you could do this in either one of two ways

either do it as a table ie

Code:
<table>
   <tr>
     <td>
      <img src="my image.jpg" alt="my image"/>
      </td>
     <td>
      some text for image
</td>
     </tr>
 </table>


or using div tags
Code:
<div>
<div style="float:left;">
 <img src="my image.jpg" alt="my image"/>
</div>
<div style="float:right;">
some text for image
</div>
</div>

something simple but as I said I'm still fairly new to this html stuff and probably there is a simplier way of doing it.
 
Last edited:
Back
Top Bottom