5

When using the inspect element on chrome, there is a small yellow caution icon next to the CSS code. What is that?

Community
  • 1
  • 1
etangins
  • 624
  • 3
  • 11
  • 23

2 Answers2

5

The icon simply means there is an error in that line of code. For example:

background-color:000000;

Would return that icon symbol because there is no "#" in front of the hex number and thus the line of code is incorrect.

etangins
  • 624
  • 3
  • 11
  • 23
0

To access Chrome's "Inspect" feature, right click on the web page being displayed by Chrome and select the "Inspect" option.

This opens the Chrome DevTools window.

Refer to the Chrome DevTools Overview page for more information.

enter image description here

A yellow caution icon of a triangle with an exclamation mark ( ! ) inside can be displayed when Inspect detects an invalid CSS definition. The following image shows a CSS attribute that did not correctly define the "font-size" attribute.

enter image description here

Also, a red circle icon with a white 'x' can be displayed in the upper right corner of the Inspect window when a script error is detected.

enter image description here

Clicking on the red circle icon will cause the applicable error message to be displayed under the "Console" tab. The console message area (at the bottom of the Inspect window) may need to be expanded to fully view the displayed error message.

This is an example of a jQuery / JavaScript error message.

enter image description here

JohnH
  • 1,920
  • 4
  • 25
  • 32