data-type
<length> — CSS reference
Lengths measure distance in CSS coordinates. Absolute units have fixed ratios to one another, while relative units depend on a reference such as font metrics or viewport size. Whether negative lengths or unitless zero are accepted depends on the context.
Formal Syntax & Structure
css syntaxcss
<length> /* e.g. 16px, 2em, 0 */Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#parent {font-size:18px} #a {width:2em} #b {width:0}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>