tag:support.markedapp.com,2011-09-11:/discussions/questions/9246-is-an-easy-way-to-change-font-in-default-or-custom-css-styleMarked: Discussion 2019-03-01T14:50:06Ztag:support.markedapp.com,2011-09-11:Comment/470198852019-03-01T14:50:05Z2019-03-01T14:50:05ZIs an easy way to change font in default or custom css style?<div><p>There is no "serif" class applied to paragraphs, so you need a different selector on the rule. Specificity will help. If you want to change all fonts in the page to Palatino, you would use something like this in the Additional CSS box:</p>
<pre>
<code>#wrapper {
text-align: justify;
text-justify: inter-word;
}
#wrapper * {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif!important;
}</code>
</pre>
<p>That would change the font of every element in every theme to Palatino. Note that I changed <code>div</code> to <code>#wrapper</code> as well to prevent the style from affecting Marked's own elements (like the Table of Contents, etc.). You also need the <code>!important</code> to ensure it overrides any more specific font declarations in a given theme.</p>
<p>If you only want to change the font in your custom themes, it would be a little different. If you want help with that, attach a copy of the theme file and I'll help you modify it.</p>
<p>-Brett</p></div>Brett