Skip to main content
All docs
V23.2

Inspect CSS Rules

  • 2 minutes to read

This topic describes how to define which CSS rules are applied to HTML elements.

Chromium-Based Browsers

Google Chrome, Microsoft Edge, and Opera browsers allow you to inspect CSS rules as follows:

  1. Right-click a web page and select Inspect (in Chrome or Edge) or Inspect Element (in Opera) to open DevTools.

  2. Click the inspect icon at the top-left corner of DevTools and select an element.

The Elements tab highlights the selected element in the DOM Tree. The Styles tab lists all styles applied to this element and allows you to inspect them. You can enable and disable styles, filter them by name, value, or selector.

Inspect CSS rules in Chrome

Apple Safari

Follow the steps below to inspect CSS rules in Apple Safari:

  1. In the menu bar, select SafariSettings… to open the Settings window.

  2. Switch to the Advanced pane and enable the following option: Show Develop menu in menu bar.

  3. Close the Settings window.

  4. Select DevelopShow Web Inspector in the menu bar to open the inspector panel.

  5. Click the element selection icon at the top of the panel and select an element.

The Elements tab highlights the selected element in the DOM Tree. The Style section lists all styles applied to this element and allows you to inspect them. You can enable and disable styles, filter them by name, value, or selector.

Inspect CSS rules in Safari

Mozilla Firefox

Use the following methods to inspect CSS rules in Mozilla Firefox:

  1. Right-click a web page and select Inspect (Q) to open Page Inspector.

  2. Click the select element button at the top-left corner of Page Inspector and select an element.

The HTML pane highlights the selected element in the HTML tree. The Rules view lists all styles applied to this element and allows you to inspect them. You can enable and disable styles, filter them by name, value, or selector.

Inspect CSS rules in Firefox

See Also