[CLOSED] Hyperlink Example

  1. #1

    [CLOSED] Hyperlink Example

    v1.5

    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" />
    Name:  Capture.JPG
Views: 250
Size:  8.4 KB

    Thanks in advance!
    Last edited by Daniil; Aug 21, 2012 at 9:29 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Just
    .my-class a {
       ...
    }
  3. #3
    thank you.

Similar Threads

  1. [CLOSED] Xtemplate Hyperlink
    By RCM in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 16, 2012, 8:09 PM
  2. HyperLink in HtmlEditor is not working
    By reezvi in forum 1.x Help
    Replies: 6
    Last Post: May 17, 2012, 5:40 PM
  3. Click Listeners for HyperLink, ext.net ?
    By Mohammad in forum 1.x Help
    Replies: 4
    Last Post: Oct 23, 2011, 7:03 AM
  4. [CLOSED] Panel as hyperlink
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: May 25, 2011, 12:59 PM
  5. [CLOSED] Hyperlink Bug
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Feb 23, 2011, 8:28 AM

Posting Permissions