# center

Source: https://zotonic.com/docs/1771/center

URI: https://zotonic.com/id/1771

Language: en



Centers the value in a field of a certain width using spaces.

For example:

```django
{{ value|center:7 }}
```

When value is `hello` then the output is `_hello_` (with spaces).

Centering only works for single byte character values. At this moment there is no support for multi-byte unicode characters.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1771?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1771?language=en>)
