Paragraph styling for Adventure Logs?

Calion
Calion

I'd like to apply different paragraph styles for my adventure logs than for the rest of the site. However, I can't quite figure out if that's possible, or if it is, how to do it. The page-specific body class for adventure logs is ".adventure-log-show." But how exactly do I use it to format paragraph css?

 

Thanks!

Comments

  • cgregory
    cgregory
    Posts: 780

    You can create your own paragraph style by giving it a class name.

    Your html would be something like (your class name can be anything you want but I'd suggest the name of the font you want to use.

    <p class="Bellefair">Here is your paragraph</p>

    and your css would be

    p.Bellefair{

    font-family: "Bellefair";

    }

     

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • cgregory
    cgregory
    Posts: 780

    Sorry, I answered that thinking you wanted individually different fonts for various paragraphs.

    John Prime's answer of using .post-content > p should hit all adventure log paragraphs without touching the rest of the site.

    https://forums.obsidianportal.com/discussion/4727/paragraph-indents-in-ckeditor

    My above is more for modifying individual paragraphs.

     

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

Sign In or Register to comment.

March 2024
Wrath of the Highborn

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions