2
I have a list that your elements are added with the jquery append and the added text does not respect div and 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_arquivos img{
border: 1px solid #ccc;
padding: 20px;
}
html:
<div id="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, does not exceed the 100px that I delimited to the tag p where it is.
Want the text to break down?
– Sam
@Yes, I tried everything, it doesn’t break at all. If I put straight into html the text breaks but when I add with the append it gets that way there in the image.
– Leandro Silva Campos
send me a print of this so I can take a look
– Sam
@ÐvÐ https://screenshots.firefoxusercontent.com/images/88d1fe08-8c28-4d79-b42e-aff5541dcd67.png
– Leandro Silva Campos
Let’s go continue this discussion in chat.
– Leandro Silva Campos