HyperLinkGadget

Just starting out? Need help? Post your questions and find answers here.
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

HyperLinkGadget

Post by Paul »

For the HyperLinkGadget the help file says:
The text color for the non-highlighted state can be changed with SetGadgetColor
Yet when I do this, in Chrome the link is always purple and when clicking on the link it is always red, regardless of color specified.
In Internet Explorer the link is always blue, regardless of color specified.

Is this a SB bug or a browser issue??
User avatar
DanLJr
Posts: 58
Joined: Wed Jul 04, 2018 4:24 am
Location: USA

Re: HyperLinkGadget

Post by DanLJr »

I THINK you'll need to define hyperlink colors in CSS. I haven't personally used the HyperLinkGadget, but if it "translates" like it does in traditional CSS/HTML, you CANNOT just control hyperlink colors inline or via HTML tags, they MUST be definitely in the stylesheet, as you can't use pseudoclasses like :hover in inline CSS.

I pilfered this code from the InterWebz, but you'll need to do something more like this (in your stylesheet for your SB app), I believe:

Code: Select all

<style type="text/css" media="screen">
a:link { color:#33348e; text-decoration: none; }
a:visited { color:#33348e; text-decoration: none; }
a:hover { color:#33348e; text-decoration: none; }
a:active { color:#7476b4; text-decoration: underline; }
</style>


Anyone else have a thought on this one? I THINK I'm leading Paul in the right direction here, but if someone else knows FOR SURE about this one in SB, your help would be greatly appreciated!

-Dan L.
:: falling on my face a lot lately; learning even more because of it! ::
Paul wrote:For the HyperLinkGadget the help file says:
The text color for the non-highlighted state can be changed with SetGadgetColor
Yet when I do this, in Chrome the link is always purple and when clicking on the link it is always red, regardless of color specified.
In Internet Explorer the link is always blue, regardless of color specified.

Is this a SB bug or a browser issue??
Post Reply