Multiple text alignments in a single statblock row

Solved

Is it possible to have multiple alignments together in a header row in a stat block? For reference, Pathfinder stat blocks typically include both the monster name and its CR in the first row, with the CR appearing in the top right, as demonstrated here.

I've tried using using multiple <span> tags on a row, and that seems to work somewhat, but everything gets misaligned if I change that to a header, as shown here.

Example homebrewery: https://homebrewery.naturalcrit.com/share/1mX0BlC1lZCzUgNEMPk3A0zb25Nr5yK6b5IOMlnJGSDO3

Posted Apr 28, 2021, 1:16 AM UTC

23
AutoModeratorMOD•

Thank you for your submission.

Please take a moment to flair your post.

To flair your post, see the row of text below your post. There is either the word "flair" (on old reddit) or a tag symbol (on new reddit). Please click that and give your post an appropriate flair. If you feel like no flair fits your post, please Message the Moderators with your suggestion. Thank you very much.

If you posted an issue, please also take a moment and check our FAQ and possible PSAs at the top of this subreddit. Thank you very much.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1
garumooBrewmaster•

Remove the <span style="float:right"> off the main heading, leaving just this:

> ## Territory Name <span>CR 5</span>

and then use CSS to style

<style>
  .phb hr + blockquote h2 span { 
    float: right; 
    font-size: 11px; 
    font-weight: normal; 
  }
</style>
1
GambatteBrewmaster•

This workaround seems to fix correct the issue ("fix" is probably too strong a word for this hack).

___
> ## <span style="float:left ;">Territory Name</span>
> ## <span style="float:right;">CR 5</span>
> <div style='min-height: 1.1em;'></div>
> ___
> - N Size Settlement
1