I have a problem to add a line break after a N (3 for example) elements of a list: I have tried to do like this Q/A solution (using :nth-child(3):after { content:"\A"; white-space:pre; }
) tells but id didn't work for me.
Here is my css
.lk-color-chooser {
list-style-type: none;
padding-left: 0;
}
.lk-color-chooser__color {
display: inline-block;
width: 30px;
height: 30px;
border-radius: 50%;
margin-right: 5px;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50);
}
.lk-color-chooser__color:hover,
.lk-color-chooser__color.selected {
opacity: 1;
filter: alpha(opacity=100);
}
.lk-color-chooser__color:last-child {
margin-right: 0;
}
Here is a plunker The code is done in angular but the problem is a css one.
Here is one of the list element :
<li class="lk-color-chooser__color ng-scope ng-isolate-scope" style="background-color: #72C2FF" ng-repeat="color in colors track by $index" color="color" ng-class="{'selected': selectedColor == color}"> </li>
Thanks in advance,
` – Daniel Apr 28 '15 at 20:48