Creating a Note

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
joshua_cline
Propeller Head
Posts: 35
Joined: Mon Jun 25, 2018 8:45 am

Creating a Note

Post by joshua_cline »

Hi,

I'm new to Flare and I am having trouble creating a Note style with two different colors, and to default as "Note". See attached. I've imported this style from Word just fine, but I can only get the text as green. How do I add different styles to a single note?
You do not have the required permissions to view the files attached to this post.
devjoe
Sr. Propeller Head
Posts: 337
Joined: Thu Jan 23, 2014 1:43 pm

Re: Creating a Note

Post by devjoe »

A good way to do this is with the content attribute of the ::before pseudo-element. So you'd have something like this:

Code: Select all

p.note
{
font-weight: bold;
border-top-color: green;
border-top-width: 1px;
border-bottom-color: green;
border-bottom-width: 1px;
}
p.note::before
{
content: "Note - ";
color: green;
}
Then you'd automatically get the borders and green "Note - " in front of any paragraph assigned the Note class.
joshua_cline
Propeller Head
Posts: 35
Joined: Mon Jun 25, 2018 8:45 am

Re: Creating a Note

Post by joshua_cline »

Thank you so much! That worked.
joshua_cline
Propeller Head
Posts: 35
Joined: Mon Jun 25, 2018 8:45 am

Re: Creating a Note

Post by joshua_cline »

Is there also a way to make the text after "- Note" to automatically be bold?
joshua_cline
Propeller Head
Posts: 35
Joined: Mon Jun 25, 2018 8:45 am

Re: Creating a Note

Post by joshua_cline »

I figured it out. Thank you.
Post Reply