liveBook · Manning

Author style

As explained in CSS in Depth, Second Edition

A stylesheet supplied by the document or application author whose declarations participate in the CSS cascade.

Author styles are declarations supplied by a web page or application. They form one stylesheet origin alongside user styles and user-agent styles, and they normally override browser defaults. section 1.1.1

Browser defaults provide familiar margins, list bullets, link colors, and font sizes. Author styles replace those defaults when the rendered design requires different values; multiple linked stylesheets still share the author origin. section 1.1.1

Replacing navigation defaults

A navigation rule can remove list padding and bullets, display items inline, and restyle links with a colored background, padding, rounded corners, and no underline.

Use revert when author declarations should be undone while browser defaults return. Applying it selectively to text-decoration restores the default underline without changing the gray link color. section 1.3.4

How CSS in Depth, Second Edition covers it

How deep it goes
Explains stylesheet origins and practical overrides, but stops short of detailed cascade conflict resolution.
Examples
Uses browser-default headings, lists, and links plus a navigation reset and a footer link using revert.
What it assumes
Assumes basic CSS declarations and selectors while teaching stylesheet origins and browser defaults.
What you can do after
Apply it via CSS to replace browser defaults and selectively restore them with revert.
How it connects
Connects author styles to the cascade, specificity, inheritance, user-agent styles, user styles, and the revert keyword.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of CSS in Depth, Second Edition. The section links point to the parts of the book it draws on.