1
I have a list and in it I add the elements with jquery append , and the list elements do not capture the css of my style file, just ignore it. Because?
html:
<ul id="list_arquivos"></ul>
css:
#list_arquivos{
list-style:none;
}
#list_arquivos li{
display:inline;
background-color: #0C94C7;
}
Javascript:
$("#list_arquivos").append(
'<li>' +
'<div style="border: 1px solid #FAFAFA">' +
'<img src="img/file_icons/'+dados.icon+'">' +
'</div>' +
'<p>'+dados.nome_arquivo+'</p>' +
'</li>'
);
Just stay like this:
The problem is that css is not applying at all. Only with statical items that I add directly into html. The ones I add interactively with jquery using append, css just doesn’t work.
– Leandro Silva Campos