element.style in chrome element inspector?

CssGoogle ChromeStylesGoogle Chrome-Devtools

Css Problem Overview


When I inspect elements in Chrome, under my styles I have element.style {}, What does this refer to? It contains styles I am not including in my code source.

Css Solutions


Solution 1 - Css

Those are inline styles.
They come from the style="" attribute or from Javascript code that sets element.style.someProperty.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAdib ArouiView Question on Stackoverflow
Solution 1 - CssSLaksView Answer on Stackoverflow