Centering the document

einar.risholm's Avatar

einar.risholm

09 Sep, 2021 12:01 PM

Hi, I try to center the document with

  max-width: 800px;
  margin: auto;
This works well when exported to html, but the document is aligned left in the application. Any tips?
  1. Support Staff 1 Posted by Brett on 09 Sep, 2021 03:30 PM

    Brett's Avatar

    Depends on the theme you’re using. You’ll probably get the best results applying the width and margin to the #wrapper element, but even better results using the width setting under preview preferences and not modifying the themes at all. All themes should center automatically if you use that (at least the built in ones).

    - Brett

  2. 2 Posted by einar.risholm on 10 Sep, 2021 05:08 AM

    einar.risholm's Avatar

    Worked like a charm!

  3. einar.risholm closed this discussion on 13 Sep, 2021 07:34 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac