This is a migrated thread and some comments may be shown as answers.

CatchaLinkButtonText

2 Answers 51 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Kamil Zmeskal
Top achievements
Rank 1
Kamil Zmeskal asked on 16 May 2010, 09:42 PM
Hi,

how can i prevent to generate inline style "display:block" for CatchaLinkButtonText? Class rcRefreshImage has lower priority than inline style :-(.

Kamil

2 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 19 May 2010, 01:02 PM
Hi Kamil,

Please mark the CSS style applied from the class selector as !important, and it will be applied instead of the inline style. Here is an example:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .rcRefreshImage
        {
            width: 100px;
            display: inline !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" ID="RSM">
        </telerik:RadScriptManager>
        <telerik:RadCaptcha ID="RadCaptcha_E" runat="server" ErrorMessage="Please enter the code shown correctly."
            CaptchaTextBoxLabel="ENTER CODE" EnableRefreshImage="true" CaptchaLinkButtonText="NEW IMAGE">
        </telerik:RadCaptcha>
        <asp:Button ID="Button1" runat="server" Text="Verify Code" />
    </div>
    </form>
</body>
</html>


All the best,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kamil Zmeskal
Top achievements
Rank 1
answered on 19 May 2010, 04:03 PM
Hi Pero,

thank you !

Kamil
Tags
Captcha
Asked by
Kamil Zmeskal
Top achievements
Rank 1
Answers by
Pero
Telerik team
Kamil Zmeskal
Top achievements
Rank 1
Share this question
or