Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Effective CSS style applied to an element

How to debug which CSS styles have been applied to an element and which styles are overrided ?

Thx
Avatar of Rob
Rob
Flag of Australia image

use the browsers developer tools.  e.g. for chrome it is Ctrl+Shift+i or F12

More information here:
https://developer.chrome.com/devtools


I often right click on an element on the page and click "inspect".  This also brings up the devtools, specifically targeting that element.  That's important as you can see on the CSS/Styles panel exactly what CSS has been applied AND what has been overridden.

User generated image
Avatar of AXISHK
AXISHK

ASKER

What is the user agent style in the inspect window ... the one that I can't  see in my coding....

Thx
You can find the user-agent on the network tab.  Just reload the page and look at any of the requests made by the browser. Is that what you are after?

User generated image
Avatar of AXISHK

ASKER

I mean the one shown in the attached file.. Is it the one that applied by default browser setting ?

Thx
CSS.png
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial