data-type

<integer> — CSS reference

An integer literal is a whole number written without a fractional part or exponent. A property may restrict its range. Math functions in an integer context can have different rounding rules; do not infer acceptance of a decimal literal from that behavior.

Formal Syntax & Structure

css syntaxcss
<integer>   /* e.g. -2, 0, 5 */

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {position:relative;z-index:-2} #b {position:relative;z-index:4}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>
CSS Reference