Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 images in a row

Status
Not open for further replies.

orangeblue

Programmer
Nov 26, 2002
107
GB
Hi
I have to get images from the database.
To display them I have to show 3 images on each row.
for example

get data from db which i can do

show images
row 1
<pic1><pic2><pic3> then a new column
<pic4><pic5><pic6>

can this be done using div's

can someone tell me how to do this.
many thanks

 
Code:
<img src="pic1.jpg" style="float: left;" alt="pic1" /> 
<img src="pic2.jpg" style="float: left;" alt="pic2" /> 
<img src="pic3.jpg" style="float: left;" alt="pic3" /> 
<img src="pic4.jpg" style="float: left; clear: left;" alt="pic4" /> 
<img src="pic5.jpg" style="float: left;" alt="pic5" /> 
<img src="pic6.jpg" style="float: left; clear: left;" alt="pic6" />
If desired, you can also put them in divs and make divs do the floating and clearing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top