You can have more Stylish Search Boxes for Blogger Blogs
CSS Search Boxes for Blogger Blogs
- Login to your blogger account.
- Go to your layout and then go to Edit HTML section.
- Click the box to Expand Widget Templates.
- Now find (Ctrl+F) this code: ]]></b:skin>.
- Now add the following code before ]]></b:skin> & click on Save Template.
/* search form ----www.howblogger.com----- */ .searchform {margin: 0;padding: 0;overflow: hidden;display: inline;} .searchbox { background: #fff; width: 275px; height:20px; color: #A46F38; font-size: 11px; font-family: sans-serif, Verdana; font-weight: bold; margin: 0; padding: 4px 0 3px 5px; border: 1px solid #DDD; display: inline; } .searchbutton { background: #555 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGI952MoB2Ua5-cu3mcYS-5F3U_wt0h7SUy35PP8mYFgdMzJkqru5BCBUStK1MGtkqvMl5bz0kRGUi-NF29zVrnXOjTLMCUDvEZg7Ka2Afg0pswdT-3T5WRqxR5dWA_-Jg5bBI2FU-mm4b/s320/search1.gif) no-repeat; width:34px: height:28px; color: #A46F38; margin: 0; padding:5px 12px; border: 0px; } .searchbutton:hover { background: #555 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_IbQU8Wgqp8bRBWD-Y8ACa0GSwMwmrdWc_keQvpoToBMDWAmSpDD0_MCf9aQBkzSwAaV4PgkeFmMZHJal9wPmo3oGJHnDScbsEjqinAzh-K3FAFntHZAKt8OjgbAGiAlNgWA0c-qpcJ99/s320/search2.gif) no-repeat; }
- Now go to Page Elements → Add a Gadget → HTML / Javascript.
- Now paste the following code in the box.
<form action="/search" class="searchform" method="get" style="display:inline;"><input class="searchbox" maxlength="255" name="q" onblur="if (this.value == "") {this.value = "Search here...";}" onfocus="if (this.value == "Search here...") {this.value = ""}" type="text" value="Search here..." /><input class="searchbutton" type="submit" value="." /></form> - Click on Save & you are almost done.
0 comments
Post a Comment