I want to have a elements where one is highlighted and other colors just move one div right . here's code :
<div class="all">
<div class="normal"></div>
<div class="normal"></div>
<div class="normal"></div>
<div class="highlighted"></div>
</div>
<div class="all">
<div class="normal"></div>
<div class="highlighted"></div>
<div class="normal"></div>
<div class="normal"></div>
</div>
.all > div {
width: 100px;
display: inline-block;
height: 100px;
}
.normal:nth-of-type(1) { background: red; }
.normal:nth-of-type(2) { background: blue; }
.normal:nth-of-type(3) { background: green; }
.highlighted { background: yellow; }
http://jsfiddle.net/6dn9ovvc/1/
In second line I need to have red , yellow , blue , green.