Skip to main content
Known Participant
January 4, 2018
Question

Adding a hyperlink to a DIV in the RH2017 interface

  • January 4, 2018
  • 1 reply
  • 566 views

Hi all,

We have a custom button set up as a div. I can add the div to what would be the button text easily enough, but I can't find a way to link it without just going into the code.  That is, it won't let me attach a hyperlink to a DIV.

Is there some trick to this I'm not seeing? I could swear I've done this before...

Thanks!

Christian

This topic has been closed for replies.

1 reply

Captiv8r
Legend
January 4, 2018

Hi there

I think more information is needed here.

For example, what exactly do you mean when you say "We have a custom button set up as a div"? A button is an object on a page. I'm not sure how one goes about setting a button up as a div.

Generally speaking, in the RoboHelp editor you select what you want and you then make it a hyperlink. The fact you seem to be talking about divs suggests that you are more than comfortable mucking around in the code. So assuming it's possible to make a div a hyperlink, one would think it would be a cake walk for configuring a hyperlink.

Cheers... Rick

Known Participant
January 4, 2018

Always make them ask before you overshare

Basically we have clickable images.  These aren't actual image files, but DIVs containing text, all set up to have a custom look.  Basically, I need to recreate this construction:

<a class="link_style" href="http://target.url.com">

     <div class="div_style">Clickable Text</div>

</a>

I have the CSS set up, so the buttons look right and the links behave properly and all that stuff. I'm struggling to figure out how to imbed the DIV in the hyperlink, because:

1) We have multiple writers and not all are comfortable with raw HTML. Basically just me, really. But...

2) Tomorrow is my last day, and I'm trying to set this up for my future former co-workers

Thanks!

Captiv8r
Legend
January 4, 2018

Hmmm, have you tried putting this into a User Defined Variable?

Or perhaps a snippet?

Cheers... Rick