I'm using Flare 12 to output to HTML4 and PDF/print.
If I have text in a table and apply a character tag such as <I> for italic, then the italicised text seems to almost be superscript in the PDF. It's ok in html5 though.
I presume the <I> is not inheriting formatting such as cell padding from the tags like <td class="TableStyle-PatternedRowsOnDarkBackground-BodyD-Regular-LightRows">, but the only formatting hard coded into the i character tag is font-style=italic for Medium: print.
I'm using the built in table styles in TableStyles/PatternedRowsOnDarkBackground.css.
Has anyone experienced this issue before - my tables are a real mess in the PDF!
In tables, applying italic makes text look superscript
Re: In tables, applying italic makes text look superscript
I am always loath to use inline styling. In your instance I would create a <span> with style of italic and apply it to the text. CSS cascades down and your inline <i> tag overrides any other styling in headers and stylesheets.
To do is to be - Socrates
Doooby doooby doo - Sinatra
Yabba Dabba Doo - Fred Flintstone
Doooby doooby doo - Sinatra
Yabba Dabba Doo - Fred Flintstone
Re: In tables, applying italic makes text look superscript
Thanks for that suggestion - I'll look into it and report on the results.2bemused wrote:I am always loath to use inline styling. In your instance I would create a <span> with style of italic and apply it to the text. CSS cascades down and your inline <i> tag overrides any other styling in headers and stylesheets.
-
techwriter31
- Propellus Maximus
- Posts: 551
- Joined: Wed Mar 05, 2008 10:50 am
Re: In tables, applying italic makes text look superscript
We've noticed this too and I have been meaning to file a bug. The superscript appearance also occurs if you apply a condition tag to a span of text within a table.
Kellie
Re: In tables, applying italic makes text look superscript
I get the same result. If I replace:techwriter31 wrote:We've noticed this too and I have been meaning to file a bug. The superscript appearance also occurs if you apply a condition tag to a span of text within a table.
<td class="TableStyle-PatternedRowsOnDarkBackground">For example, if your <i>email</i> server is hosted by a server named email.myco...</i>.</td>
with
<td class="TableStyle-PatternedRowsOnDarkBackground">For example, if your <span class="italic">email </span>server is hosted by a server named email.myco...</i>.</td>
and add
.italic{
font-style: italic;
}
...to the MainStyles.css (as per http://www.cssbasics.com/chapter_6_css_spans.html) the word email still floats above the rest of the text, so it looks like a superscript in the PDF. In the HTML5 target the <span class="italic">email </span> works ok (as does a simple <I> tag).
-
paintedturtle
- Propeller Head
- Posts: 88
- Joined: Wed May 25, 2016 3:35 pm
Re: In tables, applying italic makes text look superscript
Have you tried using <em> </em> instead of Italics? Do you get the same result?
Paul_N wrote:I get the same result. If I replace:techwriter31 wrote:We've noticed this too and I have been meaning to file a bug. The superscript appearance also occurs if you apply a condition tag to a span of text within a table.
<td class="TableStyle-PatternedRowsOnDarkBackground">For example, if your <i>email</i> server is hosted by a server named email.myco...</i>.</td>
with
<td class="TableStyle-PatternedRowsOnDarkBackground">For example, if your <span class="italic">email </span>server is hosted by a server named email.myco...</i>.</td>
and add
.italic{
font-style: italic;
}
...to the MainStyles.css (as per http://www.cssbasics.com/chapter_6_css_spans.html) the word email still floats above the rest of the text, so it looks like a superscript in the PDF. In the HTML5 target the <span class="italic">email </span> works ok (as does a simple <I> tag).
Technical Writer using and experimenting with Flare version 12.0.5991.
Re: In tables, applying italic makes text look superscript
Just tried em - same resultpaintedturtle wrote:Have you tried using <em> </em> instead of Italics? Do you get the same result?