I am displaying search results in a div:
<div id="results">
<div class="list-item">[Text]</div>
<div class="list-item">[Text]</div>
<div class="list-item">[Text]</div>
<div class="list-item">[Text]</div>
<div class="list-item">[Text]</div>
<div class="list-item">[Text]</div>
</div>
The number of list-items is variable. I want to have border-bottom: 1px solid #000;
on all the list-item classes, except for the last result. Is there a way in CSS to do this, or do I need to use JS?