DevTools Tips hero logo

DevTools Tips: Discover CSS issues

Published on

Have you ever applied CSS to an element but it just doesn't work?

With Chrome DevTools, you can discover CSS issues at a glance, debug, and test them.

Watch the video to learn how the Elements > Styles pane highlights various CSS issues:

  • Warning. Property with invalid syntax

  • Checkbox. Overridden property

  • Checkbox. Inactive property Information.With a hint.

  • Inherited from parent

    • Checkbox. Inherited property
    • Checkbox. Non-inherited property
  • Checkbox. Expandable shorthand property Expand.

    • Checkbox. Overridden longhand property
    • Checkbox. Active longhand property

user agent stylesheet

  • Non-editable property
  • Overridden non-editable property

More debugging tips:

  • Use the filter in the Styles pane to focus on the one property that interests you.
  • Use the Computed pane to see all the Cascade winners and their computed values.
  • In the Computed pane, expand a property and click a link to find its source in the Styles pane.

To learn more about all the ways DevTools highlights CSS issues, see Find invalid, overridden, inactive, and other CSS.

To level up your CSS expertise, see Learn CSS.

To learn how to create websites that look great and work well for everyone, see Learn Responsive Design.

Published on Improve article

Back

Getting Started with Style Queries

Next

What's New in DevTools (Chrome 111)

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.