Rank: Newbie Groups: Member
Joined: 6/27/2014 Posts: 2
|
The captcha control is not properly rendering 3 digit html colors.
<eo:Captcha runat="server" ID="Captcha1" PromptHtml="" ImageBackColor="#f0f" TextColor="#0f0">
This should render the captcha image with a magenta background and green text. Yes, yuck, I know, it was an experiment. It does not though, its almost black with dark blue text.
However using using the #f0f, instead of magenta its near black. I also tried it with caps #F0F. It does recognize it as magenta when using "#FF00FF".
This does work: <eo:Captcha runat="server" ID="Captcha1" PromptHtml="" ImageBackColor="#ff00ff" TextColor="#00ff00">
As a side note...
The demo should contain black image background and white text as a combination showing compatibility with black or dark sites.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This is normal. These are ASP.NET control properties, they are not HTML attribute. HTML attributes are parsed by the browser and browser recognizes 3 digits HTML colors. However ASP.NET control color property are parsed by the standard WebColorConverter class. This class does not recognizes 3 digits color. This is the same for other color property for standard ASP.NET controls. For example, if you set a button's BackColor to "#f0f", you will see the same result.
Thanks!
|