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 #13

Open
oliverjam opened this issue Sep 28, 2018 · 0 comments
Open

CSS specificity #13

oliverjam opened this issue Sep 28, 2018 · 0 comments

Comments

@oliverjam
Copy link

The site looks nice, and I get that you have very minimal styling.

I just wanted to give some advice on the way you write the CSS. Generally you won't have any problems on small projects like this, but as you start working on larger code-bases (or with bigger teams) it's good to have consistency in the way you write styles.

This is an amazing resource: cssguidelin.es

Styling with IDs is generally not a great idea. They have the highest specificity of any selector so it can be hard to override styles, and can only ever be used once, which prevents you from reusing styles.

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

No branches or pull requests

1 participant