|
|
|
|
|
by sbarre
4602 days ago
|
|
but then wouldn't document.getElementById() calls get confused, even though your IDs are nested? Shouldn't it be the other way around? #homer .left-eye { ... }
#bart .left-eye { ... }
makes more sense to me than .homer #left-eye { ... }
.bart #left-eye { ... }
|
|
.some-class #some-id makes sense only if you want to style page-unique elements differently in some cases but even in that case I'd argue that #some-page-id #some-id would be better (assuming #some-page-id is the body element id).