Skip to main content
Inspiring
April 10, 2012
Question

Extra bold text?

  • April 10, 2012
  • 3 replies
  • 17026 views

Hi,

I create a WebHelp with RH 9. It is a new project which was created in RH 9.

The text contains words in bold (like this). Some short lines (style Normal like the text) are also bold. These lines are not headlines, but they should be highlighted in bold (see below).

To add bold I use the bold button of RH. When I generate the WebHelp and open it in Firefox (currently version 11), then words within a text and the short bold line look different ?! The single word appears extra bold and the line appears normal bold.

The genereated HTML looks like:

for a word: <span style="font-weight: bold;"><b>word in bold</b></span>

for the short line: <p style="font-weight: bold;">line in bold</p>

When I switch to the HTML view in RH it looks like:

for a word: <span style="font-weight: bold;">word in bold</span>

for the short line: <p style="font-weight: bold;">line in bold</p>

Why does the generation procedure handle bold things different? And why does it add the <b> tag for words within a longer text? I don't want to create a special style sheet for bold words when there is a button to make a word bold.

Can someone explain that?

Regards

DannyH

This topic has been closed for replies.

3 replies

Known Participant
June 18, 2014

I seem to have the same problem with RH9 and my solution is to replace the <span style="font-weight: bold;"> and </span> tags with <b> and </b> because it did not happen everywhere and I did not mind handling the issue manually.

The_Real_Mike73
Inspiring
May 29, 2012

I added this to my CSS and it fixed it right up:

b{

font-weight:bold;

}

Peter Grainge
Community Expert
Community Expert
May 29, 2012

Interesting, so Danny wasn't the only one with this problem.

Thanks for posting a solution Mike.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Willam van Weelden
Inspiring
April 11, 2012

Hi,

I just did a quick test on RH9 and Robo inserts the span as wel as the for the span and the paragraph in my case. Is there a special routine you use for making bold paragraphs? I fiddled with several settings, but I could not get the result you describe.

Greet,

Willam

DannyH_Author
Inspiring
April 12, 2012

Hi Willam,

yes, RH9 inserts span. This is correct. Now generate a WebHelp and open this in a browser like Firefox 11. The single word within a text appears super bold and the bold paragraph appears normal bold. Right click into the text shown in the browser and display the HTML code. Now you see <span><b>word</b></span> (= super bold) and <span>paragraph</span> (normal bold).

Regards

DannyH

Willam van Weelden
Inspiring
April 13, 2012

Mmmh, I tested on two different RoboHelp installations. On one installation, I don't get the result you describe. On the other installation I do get the HTML code you describe, but I don't see any difference in bold text in the output. I must be going nuts...

Could your CSS be interfering somehow by adding a 'font-weight: bolder;' to the <b> element? I will test some more to see what makes the difference.

Greet,

Willam