View Single Post
Old 09-03-2015, 04:59 PM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,363
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
If you use 'float' then the number of images per row will change depending on the width of the device's screen.

Code:
css:
img {float:left; height:240px; width:160px; padding:5px}

<div>
<img alt="" src="../Images/1.jpg"/>
<img alt="" src="../Images/2.jpg"/>
<img alt="" src="../Images/3.jpg"/>
<img alt="" src="../Images/4.jpg"/>
<img alt="" src="../Images/5.jpg"/>
<img alt="" src="../Images/6.jpg"/>
<img alt="" src="../Images/7.jpg"/>
<img alt="" src="../Images/8.jpg"/>
</div>
If you wish to add text between images, then insert the image tag inside the paragraph:

Code:
css:
img {float:left; height:240px; width:160px; padding:5px}

<p><img alt="" src="../Images/1.jpg"/> Take two deep breaths....</p>
You can certainly use a table to place images exactly where you want, but I don't recommend it. There are too many issues with getting tables to work, and look, right on all the different sized screens.

Cheers,
Turtle91 is offline   Reply With Quote