Line spacing in Marked 2´s additional CSS

Simon's Avatar

Simon

03 Mar, 2019 07:22 PM

Hello!
I'm using custom CSS templates in Marked 2. At the moment I have this text in the text-box under "additional CSS":
---
#wrapper {
  text-align: justify;
  text-justify: inter-word;
}

#wrapper * {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif!important;
}
---
Is it possible to add a command that makes the text in every custom template having a 1.5 line space?
If so, whats the command and does it have a difference in which order I put it?

Thanks
Simon

  1. Support Staff 1 Posted by Brett on 03 Mar, 2019 07:32 PM

    Brett's Avatar

    You would use `line-height: 1.5`. The number is relative to font-size,
    though, and you may have different results between themes. You probably
    also only want it to affect paragraphs and not headlines and such, so
    you should use a rule like:

    #wrapper p {
       line-height: 1.5;
    }

  2. 2 Posted by Simon on 03 Mar, 2019 07:34 PM

    Simon's Avatar

    Thanks for fast answer :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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