2012-06-08

Remove dotted border from HTML elements

The dotted border is a browser things. However, you can set outline and border properties to none as below so there will be no dotted border around the selected/focused element.

.test{ 
outline:none; 
border:none; 
}

<asp:ImageButton ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" ImageUrl="~/Images/Image1.png" CssClass="test" />

1 comment:

Ramesh Kumar said...

Thanks for sharing this useful info.keep updating same way.

Cheers,
Ramesh Roy
IPhone Application Development Company