Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Orange highlighting in Chrome Developer Tools

When viewing elements in Chrome Developer Tools, the HTML element is typically highlighted blue when hovering over the element with the mouse.

However sometimes there is also an orange region. (See image)

What is the meaning of the orange highlighting? Sometimes it looks like it is a reflection of the parent HTML element. But sometimes it isn't. It just seems so arbitrary, which has got me puzzled.

enter image description here

like image 716
Oliver Watkins Avatar asked Mar 03 '16 15:03

Oliver Watkins


1 Answers

The colors are the following:

  • Orange is Margin
  • Yellow is Border
  • Green is Padding
  • Blue is element width and height

If you ever forget, simply check the computed sidebar for the border-box display.

border-box display for elements in DevTools

like image 71
Garbee Avatar answered Sep 24 '22 17:09

Garbee