Thursday, March 29, 2012

HTML Image buttons

Hello,

I am using HTML image buttons in my web application and
when I run it, all my image buttons are showing up with a
border.

I tried using border="0" with the input tag, but it is
deprecated.

<input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
type="image" onclick="return checkPage('next');"
runat="server"/
Can anyone suggest me an alternative?

Thanks!Hello,

Never had this issue, but you can try applying the "style" attribute
disabling any borders for the input control (provided the border is not the
focus frame indicating the control the keyboard input will be directed to).
You can inhibit the focus rect by adding HIDEFOCUS="true" but this will work
in IE only.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"itsme" <anonymous@.discussions.microsoft.com> wrote in message
news:082401c3984e$d5350a80$a101280a@.phx.gbl...
> Hello,
> I am using HTML image buttons in my web application and
> when I run it, all my image buttons are showing up with a
> border.
> I tried using border="0" with the input tag, but it is
> deprecated.
> <input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
> type="image" onclick="return checkPage('next');"
> runat="server"/>
> Can anyone suggest me an alternative?
> Thanks!
Hello,

Never had this issue, but you can try applying the "style" attribute
disabling any borders for the input control (provided the border is not the
focus frame indicating the control the keyboard input will be directed to).
You can inhibit the focus rect by adding HIDEFOCUS="true" but this will work
in IE only.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"itsme" <anonymous@.discussions.microsoft.com> wrote in message
news:082401c3984e$d5350a80$a101280a@.phx.gbl...
> Hello,
> I am using HTML image buttons in my web application and
> when I run it, all my image buttons are showing up with a
> border.
> I tried using border="0" with the input tag, but it is
> deprecated.
> <input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
> type="image" onclick="return checkPage('next');"
> runat="server"/>
> Can anyone suggest me an alternative?
> Thanks!

No comments:

Post a Comment