Reputation: 623
I don't want the blue border when you click on a button that doesn't have its original border, here is the HTML:
<div id="buttonholder" style="border 1px solid black">
<button id="previous">< Previous round</button>
<button id="next">Next round ></button>
<button id="current">> Current round<</button>
<div style="font-size: 0;">
<form id="inputfield" name="inputfield">
<input type="inputfield" value="Search for round here...">
<input type="button" value="Go">
</form>
</div>
<div id="displayround">
1/38
</div></button>
</div>
If I need to post the entire CSS let me know, just added it in the html to make it short.
Upvotes: 10
Views: 10008
Reputation: 61349
In Chrome at least, the blue border is a result of the focus
pseudo-class, not active
.
Set outline: none
in that selector and it will go away:
button:focus, input[type="button"]:focus {
outline: none;
}
Upvotes: 11
Reputation: 716
I think what you're looking for is use of the :visited in your css.
If it's an anchor tag, try
a:visited {
text-decoration: none;
border: none;
color: black; /* change to your desired color */
}
Upvotes: 0
Reputation: 14729
Its caused by most browsers default styling of the outline
property on the :active
state
button:active, input[type="button"]:active {
outline: none;
}
Upvotes: 2
Reputation: 1403
Your question is a little vague, but try "outline: none;"
Upvotes: 1