Guest User

Untitled

a guest
Nov 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <input type="text" />
  2.  
  3. <input type="text" style="border-color:red" />
  4.  
  5. <input type="text" style="border:1px solid #ff0000" />
  6.  
  7. <input type="text"/>
  8.  
  9. <style>
  10. input{
  11. border:2px solid #FF0000;
  12. }
  13. </style>
  14.  
  15. .default{
  16. border: 2px solid transparent;
  17. }
  18.  
  19. .new{
  20. border: 2px solid red;
  21. }
  22.  
  23. input:active,
  24. input:focus {
  25. border: 1px solid #red
  26. }
  27.  
  28. input:active,
  29. input:focus {
  30. padding: 2px solid #red /*for firefox and chrome*/
  31. }
  32.  
  33. /* .ie is a class you would need to set at the html root level */
  34. .ie input:active,
  35. .ie input:focus {
  36. padding: 3px solid #red /* IE needs 1px extra padding*/
  37. }
  38.  
  39. $("input.address_field").on('click', function(){
  40. $(this).css('border', '2px solid red');
  41. });
Add Comment
Please, Sign In to add comment