Copy link to clipboard
Copied
Hi
I'm trying to style text that triggers popups differently to text that triggers links (a dotted underline rather than the standard solid underline). The RH styles UI doesn't appear to give this option, so I've tried adding the following to the code:
<a href="myfile.htm"><span style="text-decoration-style: dotted;">Users</span></a>
Alas, the <a> style unexpectedly overrides the embedded <span> and the underline remains as a solid line.
Have I flubbed the coding ? Is this a deficiency in RH? Are there other tricks you can share?
TIA
Geoffrey
I was able to put it into the CSS as follows:
a.dotted {
text-decoration-style: dotted;
}
And then in the source, it looks like:
<a class="dotted" href="myfile.htm">Users</a>
Using this method, you can apply it without needing to edit the XML source:
Copy link to clipboard
Copied
Have you looked at doing this through the CSS instead of trying to style the HTML?
Copy link to clipboard
Copied
Thanks Jeff. Your suggestion overcomes the problem.
Chers
Geoffrey
Copy link to clipboard
Copied
Try this instead, it works for me (RH 2022.6.34, output tested in Chrome & Firefox):
<a href="myfile.htm" style="text-decoration-style: dotted;">Users</a>
I did not test putting this into the CSS, that would certainly be preferred, although given that it doesn't work in a span I wonder if it would work in a class.
Copy link to clipboard
Copied
I was able to put it into the CSS as follows:
a.dotted {
text-decoration-style: dotted;
}
And then in the source, it looks like:
<a class="dotted" href="myfile.htm">Users</a>
Using this method, you can apply it without needing to edit the XML source:
Copy link to clipboard
Copied
Thank you David. That's exactly what I wanted.
Cheers
Geoffrey
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more