Я создал HTML, как следующиекак сделать текст точно под изображением
<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>
Я хочу, чтобы все изображения появляются в сетке, а также иметь текст ниже соответствующих изображений , Если длина текста больше, чем изображение, текст должен продолжаться во 2-й строке. Вы можете проверить, что я точно хочу на изображении ниже. Однако на изображении есть отдельный фон за текстом, который для меня не так важен.
Изображение доступно @ ссылке: http://imageart.webs.com/html%20output.png
пожалуйста, добавьте свой код CSS – akash
Try с 'а {дисплей: встроенный блок; ширина: 100 пикселей; text-align: center} ' – Vucko