Cara Membuat Kotak Pencarian (Search Box) Di Blog Keren Terbaru
Wednesday, August 24, 2016
Edit
Search Box / Kotak Pencarian adalah widget yang berfungsi untuk memudahkan pengunjung dalam mencari artikel / postingan yang mereka inginkan dengan cara hanya mengetikkan beberapa kata yang ingin dicari ke dalam kotak tersebut lalu klik tombol search maka akan menemukan / menampilkan hasil pencarian dari blog tersebut tanpa harus mencarinya dengan susah payah. Membuat kotak search bar di blog, wordpress, mywapblog, tumblr maupun website sangat penting bagi para blogger agar pengunjung tidak kesulitan dalam menemukan artikel yang mereka cari pada situs tersebut, selain itu kita juga bisa memasang berbagai macam bentuk search box yang keren, bagus, cantik, bergerak dengan kode script css dan html pada blogspot.
Kali ini saya akan share gimana Cara Membuat Kotak Pencarian (Search Box) Di Blog Keren Terbaru, silahkan ikuti tutorial langkah langkah berikut lengkap beserta gambarnya buat sobat yang ingin pasang kotak search pada blog dengan menggunakan css dan html.
Ada 2 cara bikin search Box yang akan dibahas yaitu yang pertama melalui widget bawaan dari blog dan yang kedua dengan menggunakan kode sendiri baik pada sidebar, footer atau header.
Cara Memasang Search Box Bawaan Blog :
1. Untuk membuat kotak search lewat bawaan blog dengan cara masuk menu Layout / Tata Letak lalu klik Tambahkan gadget di tempat yang sobat inginkan misal sidebar
2. Kemudian cari pilihan widget Kotak Penelusuran dan klik tombol tambah
3. Setelah itu langsung saja centang semua seperti gambar dibawah ini dan klik Simpan
4. Terakhir klik Simpan setelan yang ada di pojok kanan atas.. Selesai untuk pasang search box bawaan blog
Cara Memasang Search Box Dengan Kode Sendiri :
1. Kalau sobat tidak ingin dari bawaan blog, sobat bisa membuatnya dengan cara kedua menggunakan kode sendiri yaitu masuk menu Tata Letak / Layout dan klik Tambahkan gadget pada posisi yang diinginkan misal sidebar
5. Kemudian klik tambah pada pilihan HTML/Javascript
6. Setelah itu masukkan script kode berikut ke dalam kotak konten tersebut
#Ganti tulisan warna merah dengan alamat url link blog sobat
#Ganti angka warna biru untuk mengatur ukuran search box
Jika sudah, sobat bisa klik tombol Simpan / Save
7. Terakhir klik Simpan setelan yang ada di pojok kanan atas.. Selesai untuk pasang search box dengan kode sendiri
Berikut ini beberapa script kode buat sobat untuk membuat search box dengan tampilan yang keren - keren menggunakan kode sendiri :
#Kode - kode tersebut bisa langsung dimasukkan ke kotak konten tanpa ada yang perlu di ganti / edit dulu.
Nah itulah bagaimana cara membuat kotak pencarian / search box di blog keren dengan mudah dan cepat.
Silahkan dicoba
Kali ini saya akan share gimana Cara Membuat Kotak Pencarian (Search Box) Di Blog Keren Terbaru, silahkan ikuti tutorial langkah langkah berikut lengkap beserta gambarnya buat sobat yang ingin pasang kotak search pada blog dengan menggunakan css dan html.
Ada 2 cara bikin search Box yang akan dibahas yaitu yang pertama melalui widget bawaan dari blog dan yang kedua dengan menggunakan kode sendiri baik pada sidebar, footer atau header.
Cara Memasang Search Box Bawaan Blog :
1. Untuk membuat kotak search lewat bawaan blog dengan cara masuk menu Layout / Tata Letak lalu klik Tambahkan gadget di tempat yang sobat inginkan misal sidebar
2. Kemudian cari pilihan widget Kotak Penelusuran dan klik tombol tambah
3. Setelah itu langsung saja centang semua seperti gambar dibawah ini dan klik Simpan
4. Terakhir klik Simpan setelan yang ada di pojok kanan atas.. Selesai untuk pasang search box bawaan blog
Cara Memasang Search Box Dengan Kode Sendiri :
1. Kalau sobat tidak ingin dari bawaan blog, sobat bisa membuatnya dengan cara kedua menggunakan kode sendiri yaitu masuk menu Tata Letak / Layout dan klik Tambahkan gadget pada posisi yang diinginkan misal sidebar
5. Kemudian klik tambah pada pilihan HTML/Javascript
6. Setelah itu masukkan script kode berikut ke dalam kotak konten tersebut
<br/><form action="http://carazain.blogspot.com/search"
method="get"> <input class="textinput" name="q" size="28" type="text"/> <input value="search" class="buttonsubmit" name="submit" type="submit"/></form>
#Ganti tulisan warna merah dengan alamat url link blog sobat
#Ganti angka warna biru untuk mengatur ukuran search box
Jika sudah, sobat bisa klik tombol Simpan / Save
7. Terakhir klik Simpan setelan yang ada di pojok kanan atas.. Selesai untuk pasang search box dengan kode sendiri
Berikut ini beberapa script kode buat sobat untuk membuat search box dengan tampilan yang keren - keren menggunakan kode sendiri :
<style>
#searchbox {
background: #d8d8d8;
border: 4px solid #e8e8e8;
padding: 20px 10px;
width: 250px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5q_JXDL5TbKHYd8LN6izehCA2G_SAor-2IwNYJuvS49xVlhF9S5SqjmEcyWXA38NnwvmGTl4g-0-2zYGT_clBVrS1IYy-BwHy9nSct_REdqOMR0dLJU667qzhoVUJWUxD4rhGinzJkcfT/s1600/search-dark.png) no-repeat 10px 6px #fff;
border-width: 1px;
border-style: solid;
border-color: #fff;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #bebebe;
width: 55%;
padding: 8px 15px 8px 30px;
}
#button-submit {
background: #6A6F75;
border-width: 0px;
padding: 9px 0px;
width: 23%;
cursor: pointer;
font: bold 12px Arial, Helvetica;
color: #fff;
text-shadow: 0 1px 0 #555;
}
#button-submit:hover {
background: #4f5356;
}
#button-submit:active {
background: #5b5d60;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search">
<input name="q" type="text" size="15" placeholder="Type here..." />
<input id="button-submit" type="submit" value="Search" />
</form>
#searchbox {
background: #d8d8d8;
border: 4px solid #e8e8e8;
padding: 20px 10px;
width: 250px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5q_JXDL5TbKHYd8LN6izehCA2G_SAor-2IwNYJuvS49xVlhF9S5SqjmEcyWXA38NnwvmGTl4g-0-2zYGT_clBVrS1IYy-BwHy9nSct_REdqOMR0dLJU667qzhoVUJWUxD4rhGinzJkcfT/s1600/search-dark.png) no-repeat 10px 6px #fff;
border-width: 1px;
border-style: solid;
border-color: #fff;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #bebebe;
width: 55%;
padding: 8px 15px 8px 30px;
}
#button-submit {
background: #6A6F75;
border-width: 0px;
padding: 9px 0px;
width: 23%;
cursor: pointer;
font: bold 12px Arial, Helvetica;
color: #fff;
text-shadow: 0 1px 0 #555;
}
#button-submit:hover {
background: #4f5356;
}
#button-submit:active {
background: #5b5d60;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search">
<input name="q" type="text" size="15" placeholder="Type here..." />
<input id="button-submit" type="submit" value="Search" />
</form>
<style>
#searchbox {
width: 240px;
}
#searchbox input {
outline: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5q_JXDL5TbKHYd8LN6izehCA2G_SAor-2IwNYJuvS49xVlhF9S5SqjmEcyWXA38NnwvmGTl4g-0-2zYGT_clBVrS1IYy-BwHy9nSct_REdqOMR0dLJU667qzhoVUJWUxD4rhGinzJkcfT/s1600/search-dark.png) no-repeat 10px 13px #f2f2f2;
border: 2px solid #f2f2f2;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #6A6F75;
width: 160px;
padding: 14px 17px 12px 30px;
-webkit-border-radius: 5px 0px 0px 5px;
-moz-border-radius: 5px 0px 0px 5px;
border-radius: 5px 0px 0px 5px;
text-shadow: 0 2px 3px #fff;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
#searchbox input[type="text"]:focus {
background: #f7f7f7;
border: 2px solid #f7f7f7;
width: 200px;
padding-left: 10px;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijo7gssLOgb5Movs1bUfovj794vhhIa2NlVpsAJViDWLiiGTOs0qcQbbYzUKrJoo3_VcpGZ-0uicv-xWKgVImK529ue3-YhCMqhFFnBrmxhyphenhyphenptMpt7I9SQ0719zRIBQya8Q6AG2vXSm-Xh/s1600/slider-arrow-right.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 43px;
height: 45px;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>
#searchbox {
width: 240px;
}
#searchbox input {
outline: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5q_JXDL5TbKHYd8LN6izehCA2G_SAor-2IwNYJuvS49xVlhF9S5SqjmEcyWXA38NnwvmGTl4g-0-2zYGT_clBVrS1IYy-BwHy9nSct_REdqOMR0dLJU667qzhoVUJWUxD4rhGinzJkcfT/s1600/search-dark.png) no-repeat 10px 13px #f2f2f2;
border: 2px solid #f2f2f2;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #6A6F75;
width: 160px;
padding: 14px 17px 12px 30px;
-webkit-border-radius: 5px 0px 0px 5px;
-moz-border-radius: 5px 0px 0px 5px;
border-radius: 5px 0px 0px 5px;
text-shadow: 0 2px 3px #fff;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
#searchbox input[type="text"]:focus {
background: #f7f7f7;
border: 2px solid #f7f7f7;
width: 200px;
padding-left: 10px;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijo7gssLOgb5Movs1bUfovj794vhhIa2NlVpsAJViDWLiiGTOs0qcQbbYzUKrJoo3_VcpGZ-0uicv-xWKgVImK529ue3-YhCMqhFFnBrmxhyphenhyphenptMpt7I9SQ0719zRIBQya8Q6AG2vXSm-Xh/s1600/slider-arrow-right.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 43px;
height: 45px;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUX2Xae52w07gjwiA7qkBgbVS0gEeuqLXeAjnUu3Avlb_OAuNo9Vb4Tw63p21qINWUfSUy6ooOwQ97Cs1yoYTdpJJyeDxtCc_U-Lb6EH6XaYGZOSWvbLXX3AMVCgDGY_DQEVSaKzUg4m65/s1600/searchbar.png) no-repeat;
width: 208px;
height: 29px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: transparent;
margin: 3px 0px 0px 20px;
padding: 5px 0px 5px 0px;
border-width: 0px;
font-family: "Arial Narrow", Arial, sans-serif;
font-size: 12px;
color: #828282;
width: 70%;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeJDm6MNoqKp1lzLbDlk8x5O3vJt1EyIxK7BO3pIg0vTByLXOIk25SB_GBvNqT9pLmZvNKAR-5gTt7AL0V_LOO94WduUlFT7PMatIAcoCLGJa4UL6yDkgs-5wycaG0N9x4gSMOzevtxGL4/s1600/magnifier.png) no-repeat;
border-width: 0px;
cursor: pointer;
margin-left: 10px;
margin-top: 4px;
width: 21px;
height: 22px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibM2mhm3Zek5BQ-BbluEeRuHbYtlSRcyDIuiEkb4SQxaP14qpvZiM3Xeu1Ni-AOkEO3beMEL68mo3f0BfeiewupFIQbTwjwbiivUFvsUQPJp78am_g29P9Lp3a2o9LP21Q2lC2bwWWQym6/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibM2mhm3Zek5BQ-BbluEeRuHbYtlSRcyDIuiEkb4SQxaP14qpvZiM3Xeu1Ni-AOkEO3beMEL68mo3f0BfeiewupFIQbTwjwbiivUFvsUQPJp78am_g29P9Lp3a2o9LP21Q2lC2bwWWQym6/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="search..." />
<input id="button-submit" type="submit" value="" />
</form>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUX2Xae52w07gjwiA7qkBgbVS0gEeuqLXeAjnUu3Avlb_OAuNo9Vb4Tw63p21qINWUfSUy6ooOwQ97Cs1yoYTdpJJyeDxtCc_U-Lb6EH6XaYGZOSWvbLXX3AMVCgDGY_DQEVSaKzUg4m65/s1600/searchbar.png) no-repeat;
width: 208px;
height: 29px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: transparent;
margin: 3px 0px 0px 20px;
padding: 5px 0px 5px 0px;
border-width: 0px;
font-family: "Arial Narrow", Arial, sans-serif;
font-size: 12px;
color: #828282;
width: 70%;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeJDm6MNoqKp1lzLbDlk8x5O3vJt1EyIxK7BO3pIg0vTByLXOIk25SB_GBvNqT9pLmZvNKAR-5gTt7AL0V_LOO94WduUlFT7PMatIAcoCLGJa4UL6yDkgs-5wycaG0N9x4gSMOzevtxGL4/s1600/magnifier.png) no-repeat;
border-width: 0px;
cursor: pointer;
margin-left: 10px;
margin-top: 4px;
width: 21px;
height: 22px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibM2mhm3Zek5BQ-BbluEeRuHbYtlSRcyDIuiEkb4SQxaP14qpvZiM3Xeu1Ni-AOkEO3beMEL68mo3f0BfeiewupFIQbTwjwbiivUFvsUQPJp78am_g29P9Lp3a2o9LP21Q2lC2bwWWQym6/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibM2mhm3Zek5BQ-BbluEeRuHbYtlSRcyDIuiEkb4SQxaP14qpvZiM3Xeu1Ni-AOkEO3beMEL68mo3f0BfeiewupFIQbTwjwbiivUFvsUQPJp78am_g29P9Lp3a2o9LP21Q2lC2bwWWQym6/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="search..." />
<input id="button-submit" type="submit" value="" />
</form>
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI-_k0H2vuKbl_VTYoR2TUN81DbHWsiPiq9Y78VwWZXY5ZvJ9E9sxKNMKFvdGUU4GjxWvF9DwXUyPdSXrAw8LwIHk-qXcJ_vtakwTLTlgc7Dvodnk2TZAvsZODqw_q9P4DzeiiVtECXRp3/s1600/search-box.png) no-repeat;
height: 27px;
width: 202px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: transparent;
margin: 0px 0px 0px 12px;
padding: 5px 0px 5px 0px;
border-width: 0px;
font-family: "Arial Narrow", Arial, sans-serif;
font-size: 12px;
font-style: italic;
width: 77%;
color: #828282;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0ROHChGvTN756AembjCyeUbQacOOXi1Vy9jYuL4LLZI1yxjAc0TeUlnZ67szvA-lXRHtqFUBpG8XwPdQsjr_XvkX1GJmmcc5-FRwJHThgCfOhYaIisAuI_zCJBikalRCZ7W5M7hFNZi4o/s1600/search-button.png) no-repeat;
border-width: 0px;
cursor: pointer;
width: 30px;
height: 25px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7ewckCG60F_hs6XPRavzt0yxxQrG38NEhl3-8naiJM133Fe8T8FIdZZtQCazBvNlsoB2EABqtBqRpTfpO8IvqDSDgb5HJoeKAlXSz8L5bvGN2qFuPQz-Co1zbStTmEmSR1b1tYyh89IBt/s1600/search-button-hover.png) no-repeat;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="search..." />
<input id="button-submit" type="submit" value="" />
</form>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI-_k0H2vuKbl_VTYoR2TUN81DbHWsiPiq9Y78VwWZXY5ZvJ9E9sxKNMKFvdGUU4GjxWvF9DwXUyPdSXrAw8LwIHk-qXcJ_vtakwTLTlgc7Dvodnk2TZAvsZODqw_q9P4DzeiiVtECXRp3/s1600/search-box.png) no-repeat;
height: 27px;
width: 202px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: transparent;
margin: 0px 0px 0px 12px;
padding: 5px 0px 5px 0px;
border-width: 0px;
font-family: "Arial Narrow", Arial, sans-serif;
font-size: 12px;
font-style: italic;
width: 77%;
color: #828282;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0ROHChGvTN756AembjCyeUbQacOOXi1Vy9jYuL4LLZI1yxjAc0TeUlnZ67szvA-lXRHtqFUBpG8XwPdQsjr_XvkX1GJmmcc5-FRwJHThgCfOhYaIisAuI_zCJBikalRCZ7W5M7hFNZi4o/s1600/search-button.png) no-repeat;
border-width: 0px;
cursor: pointer;
width: 30px;
height: 25px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7ewckCG60F_hs6XPRavzt0yxxQrG38NEhl3-8naiJM133Fe8T8FIdZZtQCazBvNlsoB2EABqtBqRpTfpO8IvqDSDgb5HJoeKAlXSz8L5bvGN2qFuPQz-Co1zbStTmEmSR1b1tYyh89IBt/s1600/search-button-hover.png) no-repeat;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="search..." />
<input id="button-submit" type="submit" value="" />
</form>
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93n8lGzH3iypdjgvtdFXJiWehRrONpz8foAl1f1NMC2CKY0LBM__tqa0Mor2BH-upzn7RfXxyx020dWQnjrZRkDmbl-pptrf_fTNQArT2VjfCRt6gSGisMuMqY51xX_eG6o5N8eN1Q0Cz/s1600/search-box1.png) no-repeat;
width: 250px;
height: 65px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: transparent;
padding: 5px 0px 5px 20px;
margin: 10px 15px 0px 0px;
border-width: 0px;
font-family: "Brush Script MT", cursive;
font-size: 12px;
color: #595959;
width: 65%;
font-weight: bold;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiNKf61WXHU3QxxDcKYBmk4YWn3EPanhMxaseTcsQJoU2y2XSyq7DOiRUgJbEBcuIqXSYjP_yspvA2irb9vUyM2gKKpsmM-NXVuvCHFgRJwh2efEDwklM9J3VTw5vySrdMeGEJIIUodMM-/s1600/magnifier.png) no-repeat;
border-width: 0px;
cursor: pointer;
margin-top: 10px;
width: 19px;
height: 25px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyucg1D4sACI233wZv7wmou3DXZFkOsU9g_yY3IaPCVR8sMWyaCNdNmS1DBWYF_ThZfSD-2NjZJdBfYCnB04FtPXyqmGOm5_AgCdJojyn4doT42ZB1tqMpPi7wW16kEnePRHOfZVLVOQN7/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyucg1D4sACI233wZv7wmou3DXZFkOsU9g_yY3IaPCVR8sMWyaCNdNmS1DBWYF_ThZfSD-2NjZJdBfYCnB04FtPXyqmGOm5_AgCdJojyn4doT42ZB1tqMpPi7wW16kEnePRHOfZVLVOQN7/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input class="textarea" name="q" type="text" size="15" placeholder="Search here..." />
<input id="button-submit" type="submit" value="" />
</form>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93n8lGzH3iypdjgvtdFXJiWehRrONpz8foAl1f1NMC2CKY0LBM__tqa0Mor2BH-upzn7RfXxyx020dWQnjrZRkDmbl-pptrf_fTNQArT2VjfCRt6gSGisMuMqY51xX_eG6o5N8eN1Q0Cz/s1600/search-box1.png) no-repeat;
width: 250px;
height: 65px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: transparent;
padding: 5px 0px 5px 20px;
margin: 10px 15px 0px 0px;
border-width: 0px;
font-family: "Brush Script MT", cursive;
font-size: 12px;
color: #595959;
width: 65%;
font-weight: bold;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiNKf61WXHU3QxxDcKYBmk4YWn3EPanhMxaseTcsQJoU2y2XSyq7DOiRUgJbEBcuIqXSYjP_yspvA2irb9vUyM2gKKpsmM-NXVuvCHFgRJwh2efEDwklM9J3VTw5vySrdMeGEJIIUodMM-/s1600/magnifier.png) no-repeat;
border-width: 0px;
cursor: pointer;
margin-top: 10px;
width: 19px;
height: 25px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyucg1D4sACI233wZv7wmou3DXZFkOsU9g_yY3IaPCVR8sMWyaCNdNmS1DBWYF_ThZfSD-2NjZJdBfYCnB04FtPXyqmGOm5_AgCdJojyn4doT42ZB1tqMpPi7wW16kEnePRHOfZVLVOQN7/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyucg1D4sACI233wZv7wmou3DXZFkOsU9g_yY3IaPCVR8sMWyaCNdNmS1DBWYF_ThZfSD-2NjZJdBfYCnB04FtPXyqmGOm5_AgCdJojyn4doT42ZB1tqMpPi7wW16kEnePRHOfZVLVOQN7/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input class="textarea" name="q" type="text" size="15" placeholder="Search here..." />
<input id="button-submit" type="submit" value="" />
</form>
<style>
#searchbox {
width: 280px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBFejeo6Ep3EADUZDBrSJIb0cPWkVgvG8bKd4LS1VmZoyTgG-RrAinYXFBPPjd_0x-PPJqAHHIAsdOw48zACq5PETpWbVA4FXK8s48T_cRq4P9bCUuBE8CMNB1W0Nuo5PoaFSUyX5q5rgU/s1600/search-box.png) no-repeat;
}
#searchbox input {
outline: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input[type="text"] {
background: transparent;
border: 0px;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 14px;
color: #f2f2f2 !important;
padding: 10px 35px 10px 20px;
width: 220px;
}
#searchbox input[type="text"]:focus {
color: #fff;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnLNU9oCg5v8VaJuOiGJL8fz4iGzS1sKmuh1TNXM6-6PdkQc64tqgovSS5hU4ndbCYk_8CoQJ7sDCgWdXOU-VSJdbNT26zBbpel549-EJFQ1HoOguy6ROhOy161MMi-ruzuRgytGnK5YhJ/s1600/search-icon.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 40px;
height: 50px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9aELztPDkv3VPy8jOFGl1Ur5P8hxgEMmGcccPGG9hW7A410Rv1S8lXUWe2k2qye7aj-Q3Vuq5FPoWkDHOpeJ-uKLuUPBjRQYdyQfAw_6fxtsgUFmLI8C67Tj1Kq858Lu_-byIJPjqxNXb/s1600/search-icon-hover.png);
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>
#searchbox {
width: 280px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBFejeo6Ep3EADUZDBrSJIb0cPWkVgvG8bKd4LS1VmZoyTgG-RrAinYXFBPPjd_0x-PPJqAHHIAsdOw48zACq5PETpWbVA4FXK8s48T_cRq4P9bCUuBE8CMNB1W0Nuo5PoaFSUyX5q5rgU/s1600/search-box.png) no-repeat;
}
#searchbox input {
outline: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input[type="text"] {
background: transparent;
border: 0px;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 14px;
color: #f2f2f2 !important;
padding: 10px 35px 10px 20px;
width: 220px;
}
#searchbox input[type="text"]:focus {
color: #fff;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnLNU9oCg5v8VaJuOiGJL8fz4iGzS1sKmuh1TNXM6-6PdkQc64tqgovSS5hU4ndbCYk_8CoQJ7sDCgWdXOU-VSJdbNT26zBbpel549-EJFQ1HoOguy6ROhOy161MMi-ruzuRgytGnK5YhJ/s1600/search-icon.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 40px;
height: 50px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9aELztPDkv3VPy8jOFGl1Ur5P8hxgEMmGcccPGG9hW7A410Rv1S8lXUWe2k2qye7aj-Q3Vuq5FPoWkDHOpeJ-uKLuUPBjRQYdyQfAw_6fxtsgUFmLI8C67Tj1Kq858Lu_-byIJPjqxNXb/s1600/search-icon-hover.png);
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>
#Kode - kode tersebut bisa langsung dimasukkan ke kotak konten tanpa ada yang perlu di ganti / edit dulu.
Nah itulah bagaimana cara membuat kotak pencarian / search box di blog keren dengan mudah dan cepat.
Silahkan dicoba