My code :
<div class="allegati-item">
<div class="allegati-titolo">Download</div>
<a class="allegati-link" href="/documenti/DocumentoTest.pdf">Link1</a>
<a class="allegati-link" href="/documenti/DocumentoTest.pdf">Link2</a>
</div>
.allegati-link
{
border-top:1px solid #FF0000;
display:block;
margin-bottom:4px;
}
.allegati-item a.allegati-link:first-child
{
border:0;
}
I want to delete border in the first allegati-link element, but since there is a div before it, inside the allegati-item, seems this can’t be possible?
You may try this instead: