-
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Aug 21, 2021
Replies: 1 comment 4 replies
-
By a technical limitation, overriding You can use custom slide size by using custom theme CSS. /* @theme square */
@import 'default';
section {
width: 720px;
height: 720px;
} ---
theme: square
---
# Slide title See a documentation of your using tool about how to apply a custom theme CSS: https://github.com/marp-team/marp-cli#use-custom-theme (Marp CLI) and https://github.com/marp-team/marp-vscode#use-custom-theme-css-%EF%B8%8F (Marp for VS Code) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By a technical limitation, overriding
width
andheight
declarations forsection
elements through<style>
is not working, as you have tried.You can use custom slide size by using custom theme CSS.
See a documentation of your using tool about how to apply a custom theme CSS: https://github.com/marp-team/marp-cli#use-custom-theme (Marp CLI) and https://github.com/marp-team/marp-vscode#use-custom-theme-css-%EF%B8%8F (Marp for VS Code)