html help please thanks?

  • Thread starter Thread starter misscool800
  • Start date Start date
M

misscool800

Guest
what is the code for putting pictures side by side (instead of being underneath) on a website thanks.
 
The reason that happens is either because you have <br> s or because your pictures are too big to fit. Check both.
 
you should be able to do it like so:
<img src="%url%">
<img src="%url%">

just make sure that you don't have a <br> at the end of the code for the first picture.

Also, if you need to shrink the "space" around the image, try this:
<img src="photos/mypicture.jpg" style="padding-left: 0pt; padding-top: 0pt; padding-bottom: 0pt; padding-right: 0pt">
 
<img src="yourpicture.jpg" style="float:left;clear:right">
if you want the images to be on the right side, then change it to float:right;
 
You can use a table and have multiple cells in a row.

Something like:

<TABLE>
<TR>
<TD><IMG SRC="one.jpg"></TD>
<TD><IMG SRC="two.jpg"></TD>
<TD><IMG SRC="three.jpg"></TD>
</TR>
</TABLE>
 
Back
Top