Switch to full style
HTML code examples
Post a reply

removing focus border from a HTML element

Fri Dec 09, 2011 1:14 am

removing focus border from a HTML element, in this example we use css and html to show to remove focus border from link tag. you can see this by using Tab key button.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<
head>
<
style type="text/css">
.
hidefocus:focus {
outline: none;
}
</
style>
</
head>
<
title>
hidefocus attribute usage at link tag 
</title>
<
body>

<
table>
<
tr>

<
td>
Notice that after you click no focus border is created around the link 
and then back to previous page
</td>
<
td>
<
a class="hidefocus" href="http://www.codemiles.com">Link without focus</a>
</
td>
</
tr>
<
tr>
<
td>
Notice that a focus border is created after you click 
and then back to previous page
.
</
td>
<
td>
<
a href="http://www.codemiles.com">Link with focus</a>
</
td>
</
tr>
</
table>
</
body>
</
html>  
 




Post a reply
  Related Posts  to : removing focus border from a HTML element
 Show hint when focus on html element using JQuery     -  
 Change and get html content of element     -  
 opacity of HTML element- transparent     -  
 Get the position of HTML element using JQuery     -  
 How to make html element hidden using CSS     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 Remove HTML element or Delete its content     -  
 checking if a HTML element is visible or hidden under JQuery     -  
 Removing elements from array list with the iterator     -  
 Mile200: Removing Username, Password & Login from Header     -