unit
cm — CSS reference
One centimeter is 1/2.54 of a CSS inch. The fixed conversion does not guarantee physical size on a display.
Formal Syntax & Structure
css syntaxcss
2.54cmWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>html {font-size:16px} #a {font-size:20px;width:2.54cm}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>