pasc91

iOS incompatible Searchbox

May 4th, 2020
1,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Search Box Example 1</title>
  5. <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
  6. <!-- CSS styles for standard search box -->
  7. <style type="text/css">
  8. #tfheader{
  9. background-color:#c3dfef;
  10. }
  11. #tfnewsearch{
  12. float:right;
  13. padding:20px;
  14. }
  15. .tftextinput{
  16. margin: 0;
  17. padding: 5px 15px;
  18. font-family: Arial, Helvetica, sans-serif;
  19. font-size:14px;
  20. border:1px solid #0076a3; border-right:0px;
  21. border-top-left-radius: 5px 5px;
  22. border-bottom-left-radius: 5px 5px;
  23. }
  24. .tfbutton {
  25. margin: 0;
  26. padding: 5px 15px;
  27. font-family: Arial, Helvetica, sans-serif;
  28. font-size:14px;
  29. outline: none;
  30. cursor: pointer;
  31. text-align: center;
  32. text-decoration: none;
  33. color: #ffffff;
  34. border: solid 1px #0076a3; border-right:0px;
  35. background: #0095cd;
  36. background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
  37. background: -moz-linear-gradient(top, #00adee, #0078a5);
  38. border-top-right-radius: 5px 5px;
  39. border-bottom-right-radius: 5px 5px;
  40. }
  41. .tfbutton:hover {
  42. text-decoration: none;
  43. background: #007ead;
  44. background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
  45. background: -moz-linear-gradient(top, #0095cc, #00678e);
  46. }
  47. /* Fixes submit button height problem in Firefox */
  48. .tfbutton::-moz-focus-inner {
  49. border: 0;
  50. }
  51. .tfclear{
  52. clear:both;
  53. }
  54. </style>
  55. </head>
  56. <body>
  57. <!-- HTML for SEARCH BAR -->
  58. <div id="tfheader">
  59. <form id="tfnewsearch" method="get" action="http://www.google.com">
  60. <input type="text" class="tftextinput" name="q" size="21" maxlength="120"><input type="submit" value="search" class="tfbutton">
  61. </form>
  62. <div class="tfclear"></div>
  63. </div>
  64. </body>
  65. </html>
  66.  
  67. (Source: https://www.textfixer.com/tutorials/html-search-box.php)
  68. https://stackoverflow.com/questions/25610517/ios-devices-issues-with-html-form-input-type-text
Add Comment
Please, Sign In to add comment