Reputation:
I often use developer tools to test live CSS changes but today I am seeing for the first time that the styles section on a page I'm looking at is greyed out (the background is grey, not the text) and un-editable. I only have the option to revise a specific, singular element's style and not groups of elements.
What causes this to happen?
Upvotes: 2
Views: 3686
Reputation: 12508
Every browser has a predefined set of styles used as an initial base point when rendering a web page. These styles are commonly referred to as User Agent Styles. In the Chrome Dev tools, these styles are denoted by a gray background.
SEE IT IN ACTION
To see this in action press:
<head>
tag and look to the right hand column.You should see the following defined styles in that pane:
element.style {
}
head { user agent stylesheet
display: none;
}
The styles defined for head
are part of the initial user agent stylesheet and denoted by the gray background that you mention above.
Upvotes: 4