Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2010
5,702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.42 KB | None | 0 0
  1. <div class="search-wrapper">
  2.         <form action="search.php" method="get" name="search">
  3.           <div class="search-box"><img class="search-icon" src="images/search-icon.png" width="21" height="18" alt="search icon" />
  4.             <input name="seach" type="text" value="Search for dishes or restaurants" />
  5.           </div>
  6.           <input class="submit-button" name="Go" type="submit" />
  7.         </form>
  8.       </div>
  9.  
  10.  
  11. // CSS Code
  12.  
  13. #search {
  14.     height:125px;
  15.     overflow:hidden;
  16. }
  17. .search-wrapper {
  18.     width:465px;
  19.     height:45px;
  20.     background-color:#f0f0f0;
  21.     margin:43px auto 0;
  22.     border:1px solid #e9e9e9;
  23.     -moz-border-radius: 5px; /* FF1+ */
  24.     -webkit-border-radius: 5px; /* Saf3-4 */
  25.     border-radius: 5px; /* Opera 10.5, IE 9, Saf5, Chrome */
  26.     position:relative;
  27. }
  28. .search-box {
  29.     width:375px;
  30.     height:32px;
  31.     background-color:#fff;
  32.     margin:5px 7px;
  33.     border:1px solid #cfcfcf;
  34.     -moz-border-radius: 5px; /* FF1+ */
  35.     -webkit-border-radius: 5px; /* Saf3-4 */
  36.     border-radius: 5px; /* Opera 10.5, IE 9, Saf5, Chrome */
  37.     position:relative;
  38. }
  39. .search-box img.search-icon {
  40.     margin:8px 0 0 5px;
  41. }
  42. .search-box input {
  43.     border:none;
  44.     height:30px;
  45.     width:332px;
  46.     margin:0;
  47.     position:absolute;
  48.     font-size:16px;
  49.     padding-left:5px;
  50.     padding-right:5px;
  51. }
  52. input.submit-button {
  53.     background:url(../images/go-button.png) no-repeat;
  54.     text-indent:-9999px;
  55.     border:none;
  56.     height:32px;
  57.     width:68px;
  58.     position:absolute;
  59.     top:6px;
  60.     left:390px;
  61.     cursor:pointer;
  62.  //right:15px;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement