Aug 17, 2012, 10:26 PM
[CLOSED] Hyperlink Example
v1.5
I need to set a background image to a hyperlink. The link ends up being rendered as
Thanks in advance!
I need to set a background image to a hyperlink. The link ends up being rendered as
<style type="text/css">
.my-class
{
background: url("image.png") scroll center bottom transparent;
background-repeat: no-repeat;
}
</style>
<span id="Hp3" class="x-label my-class"><img class="x-label-icon icon-cog" src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="><a id="ext-gen15" href="#" class="my-class" style="vertical-align: middle;">Cog</a></span>
I can't figure out how to apply my-class to <a href> only, right now image.png shows twice, once in <span> and once in <a>. Here's a hyperlink declaration: <ext:HyperLink ID="HyperLink1" runat="server" Text="COG" Cls="my-class" Icon="Cog" />
Thanks in advance!
Last edited by Daniil; Aug 21, 2012 at 9:29 AM.
Reason: [CLOSED]