The <integer>
CSS data type is a special type of <number>
that represents a whole number, whether positive or negative. Integers can be used in numerous CSS properties, such as column-count
, counter-increment
, grid-column
, grid-row
, and z-index
.