# Horizontal

> Configure ScrollView for horizontal scrolling.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
Horizontal = 1
```

### Remarks

Requires elements with the width property explicitly defined. A ScrollView configured with this mode has the [ScrollView.horizontalVariantUssClassName](/engine/6000.0/script-reference/unityengine/uielements/scrollview/horizontalvariantussclassname.md) class in its class list. If [ScrollView](/engine/6000.0/script-reference/unityengine/uielements/scrollview.md) is set to flex-grow or if it's parent is set to [FlexDirection.Row](/engine/6000.0/script-reference/unityengine/uielements/flexdirection/row.md) elements height stretch else they require a height.
