Home › Forums › CSS › [Solved] ::after selector, get rid of last item ::after selector › Reply To: [Solved] ::after selector, get rid of last item ::after selector
September 17, 2014 at 1:45 am
#183343
Participant
Hi marcustis,
You can user this CSS
#list a {
padding-right: 5px;
color: blue;
text-decoration: none;
}
#list a:last-child::after {
content: ”
}
#list a::after {
content: ‘ , ‘
}