Skip to content

Commit

Permalink
Update Layouting.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FlurinBruehwiler committed Mar 13, 2024
1 parent 1b92a31 commit 62c6faa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/Div/Layouting.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ using(ui.Div())
}
```

## Direction
The direction of how the children are layed out can be customized. The default is vertical.
```csharp
using(ui.Div().Dir(Dir.Horizontal))
```

## MAlign
The default alignment of the children is "start"
```csharp
Expand Down Expand Up @@ -65,12 +71,6 @@ These are the possible cross axis alignments.
using(ui.Div().XAlign(XAlign.Center))
```

## Direction
The direction of how the children are layed out can be customized. The default is vertical.
```csharp
using(ui.Div().Dir(Dir.Horizontal))
```

## Padding
Padding can be applied on the parent to insert a gap between the parent and the children.

Expand Down

0 comments on commit 62c6faa

Please sign in to comment.