Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

count elements with css if only you have just 2 - no more or less

  .cards-row:first-child:nth-last-child(2),
  .cards-row:first-child:nth-last-child(2) ~ .cards-row{
    margin-bottom: 2.2rem;
  }
 
PREVIOUS NEXT
Tagged: #count #elements #css
ADD COMMENT
Topic
Name
5+7 =