You need to use :nth-of-type(n)
selector.
// For First Right Class Div
#container .right:nth-of-type(1) {
}
// For First Left Class Div
#container .left:nth-of-type(1) {
}
Hence for every div you need to change n value.
solved how to Styling classes with the same name in a file css [closed]