i have this code which shows data from a database. the code below is from the viewer side and there is no backend and retrieval. i was wondering how i can have every different entered result as a different colour. it is like different comments. i have word wrap on i don't want every single line to be a different colour i need every new comment ill show you the code below. i am getting the data from a database and the results get inputed as a list.
<script>
$(document).ready(function(){
setInterval(function() {
$("#load_results").load("db_results.php");
}, 1000);
});
</script>
<div id="aline">
<div id = "load_results"></div>
</div >
i have looked everywhere to find an answer but i can't what will i have to add to do this. i have tried multiple ways which i used to change colour but i can't seam to get it right. at this stage all i have in css is the word wrap since i can't seam to add any colour