I am trying to make some buckets here, and usually I would do 1 class element at a time. This seems silly since classes can share attributes.
HTML
<div id = "outerBuckets"> <div class = "bucket1"> <div class ="bucketIcon"> <p></p> </div> </div> <div class = "bucket2"> <div class ="bucketIcon"> <p></p> </div> </div> <div class = "bucket3"> <div class ="bucketIcon"> <p></p> </div> </div> <div class = "bucket4"> <div class ="bucketIcon"> <p></p> </div> </div> <div class = "bucket5"> <div class ="bucketIcon"> <p></p> </div> </div> <div class = "bucket6"> <div class ="bucketIcon"> <p></p> </div> </div> </div>
So, I wanted to fulfill my css rules as follows:
.bucket 1 .bucket 2 . bucket 3 { } .bucket 4 .bucket 5 .bucket 6 { }
Basically, I wanted 123 to be formatted in the same way ... and 456 to format in a different way. But when I went to do some checks in firebug. He did not work. So I think this is the wrong way to express it. I am trying to clear my css a bit and combine some of these things to make them cleaner.
Any suggestions?
source share