Definition and Usage
The ‘nav-index’ property is an input-method-neutral way of specifying the sequential navigation order (also known as “tabbing order”).
Name: |
nav-index |
Value: |
auto | <number> | inherit |
Initial: |
auto |
Applies to: |
all enabled elements |
Inherited: |
no |
Percentages: |
n/a |
Media: |
interactive |
Computed value: |
specified value. |
Syntax
nav-index: auto|number|inherit;
Values
- auto
- The element’s sequential navigation order is assigned automatically by the user agent.
- <number>
- The number (which is non-zero and positive) indicates the sequential navigation order for the element. ‘
1
‘ means first. Elements with the same nav-index value are navigated in document order when that nav-index value is being navigated.
Examples
01 |
button { position : absolute } |
05 |
nav- right :#b 2 ; nav- left :#b 4 ; |
06 |
nav-down:#b 2 ; nav-up:#b 4 ; |
11 |
nav- right :#b 3 ; nav- left :#b 1 ; |
12 |
nav-down:#b 3 ; nav-up:#b 1 ; |
17 |
nav- right :#b 4 ; nav- left :#b 2 ; |
18 |
nav-down:#b 4 ; nav-up:#b 2 ; |
23 |
nav- right :#b 1 ; nav- left :#b 3 ; |
24 |
nav-down:#b 1 ; nav-up:#b 3 ; |