Input width defined at css level vs at the element level - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Input width defined at css level vs at the element level

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
input[type="text"]
 {
   width:201px;
   border:2px solid Chartreuse;
}
</style> <!-- w  w w .  j a va 2 s  .  co m-->
 </head> 
 <body> 
  <input type="text" name="test" value="test" style="width: 50px;">  
 </body>
</html>

Related Tutorials