Fixed element counting, encapsulated CSS