Skip to main content
January 27, 2010
Question

More than one style for a single link state?

  • January 27, 2010
  • 2 replies
  • 565 views

RH 8 outputting CHM

Hello,

Is it possible to define more than one style for a single link state?

For example, I would like a link in the footer of my master page to be smaller than the links that appear in the body of my topics. I want to retain behavior, and simply change the point size.

I can't simply hand format in Design mode, because my link is within a script. Or, am I missing something easy here?

Thanks much.

This topic has been closed for replies.

2 replies

January 27, 2010

I'm pleased to say I figured out how to change the formatting of a hyperlink embedded within a script.

Within the script, I used a var string to reproduce the text in my link. Then I used another var to change the string size.

So, here's the part of my script that produces what I'm after:

var mailDisplay = 'Was this information helpful? ';
var str = 'Was this information helpful?';
var mailDisplay = str.fontsize("1");

Upon generation of the CHM, the script trumps the CSS. It's a beautiful thing.

Willam van Weelden
Inspiring
January 28, 2010

Good, that means that you won't need my help anymore?

Greet,

Willam

This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

January 28, 2010

Hi William,

Sorry for the delay getting back to you...your email ended up in my junk mail folder.

Yes. I am all set. Thanks for your offer.

connie

RoboColum_n_
Legend
January 27, 2010

As the link is within a script I can't see a way of doing this in RH. Perhaps the script could be changed to provide the required formatting.


  • Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
  • Follow the RoboColum(n) on Twitter
Willam van Weelden
Inspiring
January 27, 2010

Hi,

I'm sure that you can style the hyperlinks easily trough your style sheet. If you post an example topic, I'll get you a solution asap.

Greet,

Willam

This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

January 27, 2010

Thank you Willam. I will take you up on your offer.

When I attach a file, should I include the htm, the css and the htt file?