I am having an issue with my CSS code using the nth-child
selector to assign border colors to different social media links within a list group. Can you help me find out what I'm doing wrong?
.list-group-item:nth-child(1) {
border-right: 3px solid yellow;
}
.list-group-item:nth-child(2) {
border-right: 3px solid red;
}
.list-group-item:nth-child(3) {
border-right: 3px solid green;
}
.list-group-item:nth-child(4) {
border-right: 3px solid blue;
}
.list-group-item:nth-child(5) {
border-right: 3px solid lime;
}
.list-group-item:nth-child(6) {
border-right: 3px solid red;
}
<div class=" col-xs-12 col-sm-6 col-md-4 col-lg-6">
<div class="views-field views-field-title">
<span class="field-content list-group-item">Yahoo<a href="/app/wall/content/"></a></span>
</div>
</div>
<div class=" col-xs-12 col-sm-6 col-md-4 col-lg-6">
<div class="views-field views-field-title">
<span class="field-content list-group-item">Googke<a href="/app/wall/content/"></a></span>
</div>
</div>