I have created a html like following
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
<a href="http://google.com">
<img src="C:\Users\HOME\Desktop\maxresdefault.jpg" width="100" height="100">
<p style="clear: both;">text in the pararaph is created using html</p>
</a>
I want all the images to appear in a grid and also to have the text below the respective images. If the lenght of text is more than image then the text should continue in 2nd line. You can check what i exactly want in the below image. However in the image there is a separate background behind the text which is not much important to me.
Image is available @ this link : http://imageart.webs.com/html%20output.png