Kali ini aku akan share gimana Cara Membuat Kotak Pencarian (Search Box) Di Blog Keren Terbaru, silahkan ikuti tutorial langkah langkah berikut lengkap beserta gambarnya buat sahabat yang ingin pasang kotak search pada blog dengan memakai css dan html.
Ada 2 cara bikin search Box yang akan dibahas yaitu yang pertama melalui widget bawaan dari blog dan yang kedua dengan memakai aba-aba sendiri baik pada sidebar, footer atau header.
Cara Memasang Search Box Bawaan Blog :
1. Untuk menciptakan kotak search lewat bawaan blog dengan cara masuk sajian Layout / Tata Letak kemudian klik Tambahkan gadget di daerah yang sahabat inginkan misal sidebar
2. Kemudian cari pilihan widget Kotak Penelusuran dan klik tombol tambah
3. Setelah itu eksklusif saja centang semua menyerupai 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 sahabat tidak ingin dari bawaan blog, sahabat dapat membuatnya dengan cara kedua memakai aba-aba sendiri yaitu masuk sajian 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 aba-aba 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 goresan pena warna merah dengan alamat url link blog sobat
#Ganti angka warna biru untuk mengatur ukuran search box
Jika sudah, sahabat dapat klik tombol Simpan / Save
7. Terakhir klik Simpan setelan yang ada di pojok kanan atas.. Selesai untuk pasang search box dengan aba-aba sendiri
Berikut ini beberapa script aba-aba buat sahabat untuk menciptakan search box dengan tampilan yang keren - keren memakai aba-aba 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/AVvXsEhyfXA4r21iPhClXzEVrQHsjbMqxtNkhtBx7xJktohrJKcTKNDdG8dvZQERZf_maHuNW6ThRyau1uhlA0XQFLuwrbCzBtbW82vTjDGdsZdNppwCFHuyZisS7VKKN46MH6_2N5PdIIhWaUsP/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/AVvXsEhyfXA4r21iPhClXzEVrQHsjbMqxtNkhtBx7xJktohrJKcTKNDdG8dvZQERZf_maHuNW6ThRyau1uhlA0XQFLuwrbCzBtbW82vTjDGdsZdNppwCFHuyZisS7VKKN46MH6_2N5PdIIhWaUsP/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/AVvXsEhyfXA4r21iPhClXzEVrQHsjbMqxtNkhtBx7xJktohrJKcTKNDdG8dvZQERZf_maHuNW6ThRyau1uhlA0XQFLuwrbCzBtbW82vTjDGdsZdNppwCFHuyZisS7VKKN46MH6_2N5PdIIhWaUsP/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/AVvXsEh4pIgsd8OOUkYsTSLFpHfutrceiaH0njFrYRbJsRivWOBecCohAiwCHWfT-d7eTW7cpEuQ52nkD4-JiLYS851AigKNAFfHLhlTQE-ZPkBj03mX0GrcQd4S9i1b5M07-ePlDBnmfNkxD7M9/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/AVvXsEhyfXA4r21iPhClXzEVrQHsjbMqxtNkhtBx7xJktohrJKcTKNDdG8dvZQERZf_maHuNW6ThRyau1uhlA0XQFLuwrbCzBtbW82vTjDGdsZdNppwCFHuyZisS7VKKN46MH6_2N5PdIIhWaUsP/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/AVvXsEh4pIgsd8OOUkYsTSLFpHfutrceiaH0njFrYRbJsRivWOBecCohAiwCHWfT-d7eTW7cpEuQ52nkD4-JiLYS851AigKNAFfHLhlTQE-ZPkBj03mX0GrcQd4S9i1b5M07-ePlDBnmfNkxD7M9/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/AVvXsEjvhLXIIp_wVO4yLody7OKnxSdmY1WuyYvrWU7dt0zuWDT1U3VaRUZ9Y_IC5qd2zx2BgXF1iXqXrd5lyswaAP3iPOkgCjSY2wR5QywStRq6UAcsYu6X4aMIbwuGquPtdKPnGr1hzXPfmODc/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/AVvXsEgIOqnuhmraFUaE_0EjbJT_Ulm7ROacjK6A02MNaW3CnZEjbLnYwtcbt80drDcf9lBMYWWcubdq2-sk_7UMH70kRPNM2oMijYnD9Irwi6smntsq5jUCHlh73IRj1vrpA5fFNGeszKaZMAPt/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/AVvXsEhxMW2XQLU5bgVIAUQq3Ym7Bb5PTiuX3dO-sxJpKMKGDI3GsH9gt1uM-Pxfp9LAdSoegAgVLBMhx9CfzjXlkpGA8Vu4AknkSjrB4iAFb-_aMKWSAqX79YBygEsE-JT-KHoEESOKyLxnSqr7/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxMW2XQLU5bgVIAUQq3Ym7Bb5PTiuX3dO-sxJpKMKGDI3GsH9gt1uM-Pxfp9LAdSoegAgVLBMhx9CfzjXlkpGA8Vu4AknkSjrB4iAFb-_aMKWSAqX79YBygEsE-JT-KHoEESOKyLxnSqr7/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/AVvXsEjvhLXIIp_wVO4yLody7OKnxSdmY1WuyYvrWU7dt0zuWDT1U3VaRUZ9Y_IC5qd2zx2BgXF1iXqXrd5lyswaAP3iPOkgCjSY2wR5QywStRq6UAcsYu6X4aMIbwuGquPtdKPnGr1hzXPfmODc/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/AVvXsEgIOqnuhmraFUaE_0EjbJT_Ulm7ROacjK6A02MNaW3CnZEjbLnYwtcbt80drDcf9lBMYWWcubdq2-sk_7UMH70kRPNM2oMijYnD9Irwi6smntsq5jUCHlh73IRj1vrpA5fFNGeszKaZMAPt/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/AVvXsEhxMW2XQLU5bgVIAUQq3Ym7Bb5PTiuX3dO-sxJpKMKGDI3GsH9gt1uM-Pxfp9LAdSoegAgVLBMhx9CfzjXlkpGA8Vu4AknkSjrB4iAFb-_aMKWSAqX79YBygEsE-JT-KHoEESOKyLxnSqr7/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxMW2XQLU5bgVIAUQq3Ym7Bb5PTiuX3dO-sxJpKMKGDI3GsH9gt1uM-Pxfp9LAdSoegAgVLBMhx9CfzjXlkpGA8Vu4AknkSjrB4iAFb-_aMKWSAqX79YBygEsE-JT-KHoEESOKyLxnSqr7/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/AVvXsEjHp5Tyr2NHHWp3xCK6973z2TkdIbUdECQSSQVvvbTz9eQb2CNaixFBW1i4R7ejAMdP_5SXHd67p9AnFrshl3g2bT1dCw8hUFslO6ws_C-R1iJsIFcSAJ4f_XE8zfm-CZ0WuNAJmCI4SdAU/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/AVvXsEiX7Y-XeSdpTIJLJT81KteYDF_8xjafCfTV2raQU8vmDNXmzWTVkL_2KiPgiba0wwHjafM0gMsjNVyf_r0gssiKggBCNenN6OrVicgSQlb8Vwkz-mb7Mly8nfhpTp3AbhSd7NLp1hWSSUFO/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/AVvXsEgS8z-zDqg3bL-Vg9GPtS9jyO6y4jgkSqbihQaDwDXGX11W-WEF4679-QUfYd6NNiHpqqTe6w3kjjDvAhDlDOwm3svgQDpY4l7iLdHPgBHyTyUFR7mKL0xsbYtpjADAVzYhpkLz_FGVq2ZX/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/AVvXsEjHp5Tyr2NHHWp3xCK6973z2TkdIbUdECQSSQVvvbTz9eQb2CNaixFBW1i4R7ejAMdP_5SXHd67p9AnFrshl3g2bT1dCw8hUFslO6ws_C-R1iJsIFcSAJ4f_XE8zfm-CZ0WuNAJmCI4SdAU/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/AVvXsEiX7Y-XeSdpTIJLJT81KteYDF_8xjafCfTV2raQU8vmDNXmzWTVkL_2KiPgiba0wwHjafM0gMsjNVyf_r0gssiKggBCNenN6OrVicgSQlb8Vwkz-mb7Mly8nfhpTp3AbhSd7NLp1hWSSUFO/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/AVvXsEgS8z-zDqg3bL-Vg9GPtS9jyO6y4jgkSqbihQaDwDXGX11W-WEF4679-QUfYd6NNiHpqqTe6w3kjjDvAhDlDOwm3svgQDpY4l7iLdHPgBHyTyUFR7mKL0xsbYtpjADAVzYhpkLz_FGVq2ZX/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/AVvXsEimwqO0DdC5e5GuWGsxXOngyhIlWJ5_HT_eVoDAcq1icUYZLrwuCEibjsgmZZxipgN4x5Dwc7PcGKLE9Z_9bmViX2Coq7A55Lq1S7v0wZv7wbw0a-Y8EXc31bFK_1N0TLW8mKgWUZ9xrfd4/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/AVvXsEjuO9wMszZGidfvyXbiNAqpUBZwu6lgcP8cYiP1bkxc7zFiyOTNwmoiMM-7jjAva918zSBs7_xNafEAQ-uXG2evV9wc2xNCt5M3j4Nq8l28n7OUFdM7ftTuxiiRP8my0-2LkLK7NwQCkQvD/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/AVvXsEjpnes_56gwoGndzntfj6FHNAxf14oegD6KucOl0xtME1RgfiCheAEXnnETateVeqQEIb-hgDgQyV6892EBoLcnKq03-6SjsAfxVe8kkb1WPzPeVk3LHWf485HFd_NaODNVxKPCzOLxOUPC/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpnes_56gwoGndzntfj6FHNAxf14oegD6KucOl0xtME1RgfiCheAEXnnETateVeqQEIb-hgDgQyV6892EBoLcnKq03-6SjsAfxVe8kkb1WPzPeVk3LHWf485HFd_NaODNVxKPCzOLxOUPC/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/AVvXsEimwqO0DdC5e5GuWGsxXOngyhIlWJ5_HT_eVoDAcq1icUYZLrwuCEibjsgmZZxipgN4x5Dwc7PcGKLE9Z_9bmViX2Coq7A55Lq1S7v0wZv7wbw0a-Y8EXc31bFK_1N0TLW8mKgWUZ9xrfd4/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/AVvXsEjuO9wMszZGidfvyXbiNAqpUBZwu6lgcP8cYiP1bkxc7zFiyOTNwmoiMM-7jjAva918zSBs7_xNafEAQ-uXG2evV9wc2xNCt5M3j4Nq8l28n7OUFdM7ftTuxiiRP8my0-2LkLK7NwQCkQvD/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/AVvXsEjpnes_56gwoGndzntfj6FHNAxf14oegD6KucOl0xtME1RgfiCheAEXnnETateVeqQEIb-hgDgQyV6892EBoLcnKq03-6SjsAfxVe8kkb1WPzPeVk3LHWf485HFd_NaODNVxKPCzOLxOUPC/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpnes_56gwoGndzntfj6FHNAxf14oegD6KucOl0xtME1RgfiCheAEXnnETateVeqQEIb-hgDgQyV6892EBoLcnKq03-6SjsAfxVe8kkb1WPzPeVk3LHWf485HFd_NaODNVxKPCzOLxOUPC/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/AVvXsEgV1fiaXKIrdhnesj46eHMrisvc5V49k80_zxln30ZmDevLuF53C2eccbzLeGJAjnA-9XkLBVeozc8upcvsaCrmRzvUa2Ny5_0Q5aNwmwEp-PUGmhPzcgrBFcl2v5s9UrJHqztQ-iLSa5HW/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/AVvXsEiUNgm9fR0M5gEZ_ciaRbzP-wpFy1KPAaipsMzArhhPGBzayumX4pGAPtqFKzbRd84crmocwU3-73d0vZHqJM7jg3YaR0YxgM1wF06Uh523QnqbJgRsvlx5iS6vkE1nuhCvcxe7HuGpYGEe/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/AVvXsEjgprbZpPMiIwqYv3-wfqmqAwrL4OlTpMVEr0EHZIIAaxe8H9xJGXvln1H2za3h2B2NW3AGjaCPDvW2yhlEG2mt4uL6gPppc0wCBr7fgPSldVMvQbtJZf5p6Cd1uTs8yaprbZlrCQE2lLKg/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/AVvXsEgV1fiaXKIrdhnesj46eHMrisvc5V49k80_zxln30ZmDevLuF53C2eccbzLeGJAjnA-9XkLBVeozc8upcvsaCrmRzvUa2Ny5_0Q5aNwmwEp-PUGmhPzcgrBFcl2v5s9UrJHqztQ-iLSa5HW/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/AVvXsEiUNgm9fR0M5gEZ_ciaRbzP-wpFy1KPAaipsMzArhhPGBzayumX4pGAPtqFKzbRd84crmocwU3-73d0vZHqJM7jg3YaR0YxgM1wF06Uh523QnqbJgRsvlx5iS6vkE1nuhCvcxe7HuGpYGEe/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/AVvXsEjgprbZpPMiIwqYv3-wfqmqAwrL4OlTpMVEr0EHZIIAaxe8H9xJGXvln1H2za3h2B2NW3AGjaCPDvW2yhlEG2mt4uL6gPppc0wCBr7fgPSldVMvQbtJZf5p6Cd1uTs8yaprbZlrCQE2lLKg/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 - aba-aba tersebut dapat eksklusif dimasukkan ke kotak konten tanpa ada yang perlu di ganti / edit dulu.
Nah itulah bagaimana cara menciptakan kotak pencarian / search box di blog keren dengan gampang dan cepat.
Silahkan dicoba
0 Response to "Cara Menciptakan Kotak Pencarian (Search Box) Di Blog Keren Terbaru"
Posting Komentar