Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine where particular style comes from using Chrome DevTools

If I inspect an element on a webpage and in the "Metrics" tab I see there are 10px margins on both side. How can I tell where these margins come from? Do they come from the default element style or specific css file (and on which line, they have been defined)?

like image 600
David Liu Avatar asked Aug 08 '13 17:08

David Liu


1 Answers

Look at the Computed Style section on the top right.

It will show you every CSS property applied to the element, with an arrow that shows how each one was applied.

like image 114
SLaks Avatar answered Oct 18 '22 08:10

SLaks