Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the "Dotted Border" on clicking?

As you can see

alt text

I want to somehow remove the dotted lines after the button has been clicked.Any ideas how ?

Thanks

GUYS : This is the current status of my CSS ansd HTML but still no USE:

.myButton input {
position:absolute;
display:block;
top: 5%;
left:87%;
height: 44px;
border:none;
cursor:pointer;
width: 43px;
font: bold 13px sans-serif;;
color:#333;
background: url("hover.png") 0 0 no-repeat;
text-decoration: none;
}
.myButton input:hover {  
background-position: 0 -44px;
color: #049;
outline: 0;
}
.myButton input:active {
background-position: 0 -88px;
color:#fff;
outline: 0;
}

input:active, input:focus {
      outline: 0;
}

<div class="myButton">
<input type="submit" value="">
</div>

Nothing seems to be happening !!

like image 942
5416339 Avatar asked Dec 07 '10 08:12

5416339


3 Answers

You have to style the <a> like:

a {outline: none}
like image 166
Linus Kleen Avatar answered Nov 12 '22 21:11

Linus Kleen


use the below code

a:active
    {
    outline: none;
    }

try for other browsers also

a:focus
{
-moz-outline-style: none;
}
a:focus { outline:none }
like image 20
kobe Avatar answered Nov 12 '22 20:11

kobe


Possible with pure HTML as well:

<a href="..." hidefocus="hidefocus">...</a>

And with JavaScript you can do that on all links:

window.onload = function WindowLoad(evt) {
   //hide focus:
   var arrLinks = document.getElementsByTagName("a");
   for (var i = 0; i < arrLinks.length; i++) {
       arrLinks[i].hideFocus = "true";
}
like image 5
Shadow Wizard Hates Omicron Avatar answered Nov 12 '22 22:11

Shadow Wizard Hates Omicron