Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Character Sheet Text Format Headers

September 13 (2 years ago)

Hello,

I'm not sure if this is a bug, I'm doing this wrong, or this can't be fixed. My issues is I'm trying to make a select few words have a certain header size. Kind of like when you want to bold important areas of text. However, when I select the text I want to be a certain header, it causes everything in that row to also be the same header.


Ex: I would like Hallow Well (city name) be Header 3 and bolded. The rest can be normal text style. But I'm unable to? I'm unsure how to resolve this.



Thanks for your time,

Blood-Lord

September 13 (2 years ago)

Edited September 13 (2 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator

CSS can only target HTML elements. It can't target specific text in a text node. To do this, you'd need to have Hallow Well in it's own span, header, div, etc. And have the rest of the text in it's own span, label, div, etc. Then you could style them separately. This is a limitation of CSS itself, and not related to the Roll20 environment.

The piece that is related to the Roll20 environment is that we can't dynamically embed the usual html elements that would be used for doing this (<b>, <i>, etc) in the middle of say a paragraph element.

September 13 (2 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

To describe this in the paradigm of word processor and page layout programs, the drop down styles are paragraph style and the styling buttons are text styles. A paragraph style affects the entire paragraph and can't be used to selectively style words.