File: integer.md

package info (click to toggle)
textual 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 55,056 kB
  • sloc: python: 85,423; lisp: 1,669; makefile: 101
file content (29 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# <integer>

The `<integer>` CSS type represents an integer number.

## Syntax

An [`<integer>`](./integer.md) is any valid integer number like `-10` or `42`.

!!! note

    Some CSS rules may expect an `<integer>` within certain bounds. If that is the case, it will be noted in that rule.

## Examples

### CSS

```css
.classname {
    offset: 10 -20
}
```

### Python

In Python, a rule that expects a CSS type `<integer>` will expect a value of the type `int`:

```py
widget.styles.offset = (10, -20)
```