| 1 | --- |
| 2 | relates: |
| 3 | - guide/faq#adjust-size |
| 4 | - features/zoom-slide |
| 5 | - features/transform-component |
| 6 | tags: [layout] |
| 7 | description: | |
| 8 | Set the size for all your slides. |
| 9 | --- |
| 10 | |
| 11 | # Slide Canvas Size |
| 12 | |
| 13 | Slidev allows you to set the size of the slide canvas via the `canvasWidth` and `aspectRatio` options in the headmatter: |
| 14 | |
| 15 | ```md |
| 16 | --- |
| 17 | # aspect ratio for the slides |
| 18 | aspectRatio: 16/9 |
| 19 | # real width of the canvas, unit in px |
| 20 | canvasWidth: 980 |
| 21 | --- |
| 22 | |
| 23 | # Your slides here |
| 24 | ``` |
| 25 | |
| 26 | To scale several slides in your presentation, you can use the `zoom` option: |
| 27 | |
| 28 | <LinkCard link="features/zoom-slide" /> |
| 29 | |
| 30 | To adjust the size of some elements on your slides, you can use the `Transform` component: |
| 31 | |
| 32 | <LinkCard link="features/transform-component" /> |
| 33 |