Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vigrant
on Aug 16, 2012
|
parent
|
context
|
favorite
| on:
256 CSS Classes Can Override an #id
It doesn't seem to work when you switch the order of the css selectors.
nemetroid
on Aug 16, 2012
[–]
Both selectors have the same specificity, so the last one is applied. Add another class and the order won't matter.
vigrant
on Aug 16, 2012
|
parent
[–]
Confused me for a second, but yeah your right.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: