Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update css.md #91

Closed
wants to merge 2 commits into from
Closed

Update css.md #91

wants to merge 2 commits into from

Conversation

nternetinspired
Copy link
Contributor

Provided some info about why CSS selectors should never use IDs.

@@ -53,7 +53,12 @@ Subsections should be normally cased and within an open comment block.
// These are stripped on compile.
```

## Class naming
## CSS selectors
Only use classes for CSS selectors, *never IDs* as they intoduce unwated speficity to the cascade. It takes 255 chained css class selectors to override a single ID, so using an ID as a css selector is like firing the first nuke; you begin a specifity war that can only escalate, with terrible consequence.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple spelling errors here... introduce, unwanted, specificity

@nternetinspired
Copy link
Contributor Author

Sorry, I edited in haste! Thanks for the headsup Michael :)

@photodude
Copy link
Contributor

👍

@photodude
Copy link
Contributor

@mbabker can this be merged pending #141 ?

@mbabker mbabker changed the base branch from gh-pages to master January 8, 2017 17:44
@mbabker mbabker closed this in 6b22440 Jan 8, 2017
@mbabker
Copy link
Contributor

mbabker commented Jan 8, 2017

Manually merged via 6b22440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants