> For the complete documentation index, see [llms.txt](https://nextgencss.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nextgencss.gitbook.io/untitled/utilities/center.md).

# Center

## Syntax (custom)

````sass
```other code
    center : "center",
```
````

## Syntax

`.center`

Puts element in center horizontally

## Compiled as

```scss
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}
```
