concept

Css reset — CSS reference

A reset deliberately replaces selected user-agent defaults to establish a predictable starting point. Reset only what the design needs: blanket removal of focus outlines or list semantics can harm usability. This narrow reset keeps declared width inclusive of padding and border.

Formal Syntax & Structure

css syntaxcss
*, *::before, *::after { box-sizing: border-box; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>css-reset</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}*,*::before,*::after{box-sizing:border-box}#a{width:100px;padding:12px;border:2px solid}</style><body><div id="a">Sample</div></body></html>
CSS Reference