align pictures in html ? help ?

  • Thread starter Thread starter max
  • Start date Start date
M

max

Guest
can anyone tell me how can i arrange 3 images in a row on the same line, leaving some distance between them..

code is:

<p><img src="imagessmall.jpg" width="130" height="97" alt="image1" />

<p><img src="imagessmall.jpg" width="130" height="97" alt="image2" />

<p><img src="imagessmall.jpg" width="130" height="97" alt="image3" />
 
<p><img src="imagessmall.jpg" width="130" height="97" alt="image1" />

<img src="imagessmall.jpg" width="130" height="97" alt="image2" style="margin-left:25px" />

<img src="imagessmall.jpg" width="130" height="97" alt="image3" style="margin-left:25px" /></p>

that should do it... change the 25 accordingley.
 
<p><img src="imagessmall.jpg" width="130" height="97" alt="image1" />

<img src="imagessmall.jpg" width="130" height="97" alt="image2" style="margin-left:25px" />

<img src="imagessmall.jpg" width="130" height="97" alt="image3" style="margin-left:25px" /></p>

that should do it... change the 25 accordingley.
 
The previous answer is correct, but it won't put any space between them. To get that (without getting into CSS), you need to put an ampersand followed by nbsp;Â* between each <img> tag.
 
Back
Top