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

CSS specificity - use classes, not ids #4

Closed
GaryJones opened this issue Sep 30, 2011 · 1 comment
Closed

CSS specificity - use classes, not ids #4

GaryJones opened this issue Sep 30, 2011 · 1 comment

Comments

@GaryJones
Copy link
Member

Instead of giving your wrapping div an id attribute, give it a class attribute (just tgmpa is sufficient, no need for -form suffix). This way, the specificity scores for the CSS selectors will be considerably lower (20/21 instead of 110/111).

Same goes for removing tgmpa-go as an ID attribute value too.

@thomasgriffin
Copy link
Contributor

Old, bad habits. You are helping me get rid of them. :) Will change this on dev and push to master.

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

No branches or pull requests

2 participants