I have a list and I add the elements with the jquery append, and the elements of the list do not capture the css of my styles file, it simply ignores. Why?
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>'
);
It just looks like this: