Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div class="primary-billing">
<div>1</div>
<div>4</div>
<div>3</div>
<div>10</div>
<div>5</div>
<div>5</div>
 <div>4</div>
<div>3</div>
<div>10</div>
<div>5</div>
<div>5</div>
</div>
 
#base{
  padding:10px;
  background:#eee;
}
#img{
  max-width:300px;
}
.primary-billing div:nth-child(n+1):nth-child(-n+2){
 background: yellow;   
}
.primary-billing div:nth-child(n+3):nth-child(-n+4){
 background: blue;   
}
.primary-billing div:nth-child(n+5):nth-child(-n+6){
 background: purple;   
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers