I have a list that its elements are added with the jquery append and the added text does not respect div and nor list boundaries:
css:
#list_arquivos{list-style:none;}#list_arquivos.arquivo{display:inline-block;margin-left:20px;margin-bottom:10px;width:100px;}#list_arquivos.nome_arquivo{width:70px;}#list_arquivosimg{border:1pxsolid#ccc;padding:20px;}
html:
<divid="dropzone">
<ul id="list_arquivos"></ul>
</div>
javascript:
$("#list_arquivos").append(
'<li class="arquivo">'+
'<a href="#">'+
'<img src="img/file_icons/'+dados.icon+'">' +
'<p class="nome_arquivo">'+dados.nome_arquivo+'</p>'+
'</a>'+
'</li>'
);
I want the text below the image, regardless of its size, not to exceed the 100px I delimited for the p tag where it stands.