What are some of the “gotchas” for writing efficient CSS?

What are some of the “gotchas” for writing efficient CSS?

Senior Developer Asked on June 5, 2018 in CSS.
Add Comment
1 Answer(s)
  • Avoid key selectors that match large numbers of elements.
  • Prefer class and ID selectors over tag selector.
  • Avoid redundant selectors.
  • Preferably don’t use universal selector.
Default Answered on November 26, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.