Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

scss for loop nth child

$show-numbers: true;

@if $show-numbers {
  @for $i from 1 through 5 {
    &:nth-child(#{$i}) {
      &:before {
        content: '#{$i}';
      }
    }
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scss #loop #nth #child
ADD COMMENT
Topic
Name
5+7 =