Focus outline after padding - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

Focus outline after padding

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
button {<!--from  w ww .j ava2 s  .c  o  m-->
   padding:11px;
   outline:red dotted thick;
}

button:focus {
   outline:blue solid thick;
}

button.no-outline {
   outline:0;
}
</style> 
 </head> 
 <body> 
  <button>Lorem ips</button> 
  <button class="no-outline">Lorem ipsum dol</button>  
 </body>
</html>

Related Tutorials