Font-family inherited to the form input fields - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Font-family inherited to the form input fields

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">
body {<!-- ww  w . j a  v a 2s . c o  m-->
   font-family:'Lucida Casual', 'Comic Sans MS';
}

input, textarea, select {
   font-family:inherit;
}

.input {
   padding:6px;
   font-size:17px;
}
</style> 
 </head> 
 <body> 
  <div>
    Lorem ipsum dolor sit ame 
  </div> 
  <form> 
   <div> 
    <label for="name">Lore</label> 
    <input class="input" id="name" name="name" type="text"> 
    <div> 
    </div> 
   </div> 
  </form>  
 </body>
</html>

Related Tutorials