Jump to content
Changes to the Jaspersoft community edition download ×

Why attribute "style" doesn't work with h2 tag ?


tony-dfs
Go to solution Solved by Rutuja Bhalchandra Shinde,

Recommended Posts

Hi everyone,

Someone may have an answer to my question, I inject HTML into a pdf report, tag attribute "style" in <h2> doesn't work.

For example in this case <h2 style="color:blue">myText</h2> and the color is not applied... I replace this tag by a span and it works, idk why...

I use <textElement markup="html"/> for the HTML, it works well for the layout, not for the font style, size, color, etc ...

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

Yeah, i saw that in the doc, but <b> and <i> doesn't work. 

<textElement markup="html"/>
<textFieldExpression><![CDATA[$V{myHtmlFile}]]></textFieldExpression>

 

In this code, even if my variable "myHtmlFile" contains <b> tags, it doesn't apply to my text...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...