## set_top_margin ##

```python
fpdf.set_top_margin(margin: float)
```

### Description ###

Defines the top margin. The method can be called before creating the first page.

### Parameters ###

margin:
> The margin.

### See also ###

[set_left_margin](set_left_margin.md), [set_right_margin](set_right_margin.md), [set_auto_page_break](set_auto_page_break.md), [set_margins](set_margins.md).
