Skip to main content

How to add stylish search box code html css for blogger

How to add stylish search box code HTML CSS for blogger widget customized search bar 


How to add stylish search box code HTML CSS for blogger widget customized search bar   How to add stylish search box code HTML CSS for blogger widget customized search bar     In this blogger coding tips post you learn how to add many stylish search boxes to your HTML widget with CSS styling, you can use the following codes below as a starting point. This example includes a simple HTML CSS structure with a search input and corresponding CSS styles for basic appearance:    Step No 1:Adding HTML CSS Code  First copy the following Style code you like the most make sure you copy only one code Then Go to Blogspot.com Then >> Your Blog >> Layout >> Add Gadget/Page Element >>> HTML/JavaScript >>> then paste the code which is below >> Then Press Save Button And you are done    No1   Go                                                        <form id="searchThis" action="/search" style="display:inline;" method="get"><input id="searchBox" name="q" type="text"/> <input id="searchButton" value="Go" type="submit"/></form>      No2    Submit   <style type="text/css"> #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/AVvXsEgdTeBr7g3DZ6KZSjZqlvvzvSRqoNNW_m97hsTtwb5IOwFWiEIOOvBDk-SYFOBQg1qw-rBtvw0wjsGjEixV8jjE0OLaCVEzb92RXTG5ghx3wSJxF2AbFMPFKJmXkdDCyNfNmvQa6GhYxDU3/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:0;padding:9px 0;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>



In this blogger coding tips post you learn how to add many stylish search boxes to your HTML widget with CSS styling, you can use the following codes below as a starting point. This example includes a simple HTML CSS structure with a search input and corresponding CSS styles for basic appearance:


Step No 1:Adding HTML CSS Code

First copy the following Style code you like the most make sure you copy only one code Then Go to Blogspot.com Then >> Your Blog >> Layout >> Add Gadget/Page Element >>> HTML/JavaScript >>> then paste the code which is below >> Then Press Save Button And you are done


No1

 


                                                    <form id="searchThis" action="/search" style="display:inline;" method="get"><input id="searchBox" name="q" type="text"/> <input id="searchButton" value="Go" type="submit"/></form>  


 No2




<style type="text/css">
#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/AVvXsEgdTeBr7g3DZ6KZSjZqlvvzvSRqoNNW_m97hsTtwb5IOwFWiEIOOvBDk-SYFOBQg1qw-rBtvw0wjsGjEixV8jjE0OLaCVEzb92RXTG5ghx3wSJxF2AbFMPFKJmXkdDCyNfNmvQa6GhYxDU3/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:0;padding:9px 0;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>

Comments

Popular posts from this blog

Simple free calorie calculator BMR TDEE basal metabolic rate counter

Simple free calorie calculator BMR TDEE basal metabolic rate counter Have you ever wondered how many calories your body burns just by existing? That's where your Basal Metabolic Rate (BMR) comes in – the foundation for understanding your daily energy needs. But calculating BMR can feel like a scientific equation. Here's where BMR calculator tools come to the rescue! Simple free calorie calculator BMR TDEE basal metabolic rate counter What is a BMR Calculator Tool? An online BMR calculator is a user-friendly tool that estimates your Basal Metabolic Rate based on factors like age, weight, height, and gender. Simply input your information, click calculate, and voila! You'll have a personalized BMR estimate. Why is BMR Important? BMR is a crucial metric for anyone looking to manage their weight. It represents the minimum number of calories your body burns at rest to maintain vital functions. Knowing your BMR helps you: Set realistic weight loss/gain goals: By understanding you...

How to add a responsive code box in the blogger post clipboard copy button

How to add a stylish responsive code box in blogger post clipboard copy button In this post of Blogger coding tips , you learn how to create a code box for a blogger blogspot post clipboard that prevents visitors from copying code by using HTML, CSS, and JavaScript.  How to add a responsive code box in the blogger post clipboard copy button 1. Create HTML of blogger code box: Open the HTML view for your Blogger post and create the structure for your code box. Include a <pre> tag for the code and a button for copying. <div class="code-box">     <pre class="code">         <!-- Your code goes here -->     </pre>     <button class="copy-button" onclick="copyCode()">Copy Code</button> </div> 2. Code box Style with CSS: Add some styles to make your code box responsive and visually appealing. You can place the following styles in your post's CSS section or use inline styles within the HTM...

How to add Redirect 404 Not Found Page to the Home Page in Blogger

How to add automotive redirect 404 Not Found Page to the Home Page with  Blogger setting for broken links by javascript code Whenever someone goes on a web page that is either deleted or has no existence Blogger website usually displays its common 404 not found error message for broken links with simple Javascript code. “Sorry for the inconvenience, the page you are looking for has no existence”. The first impression counts more than anything. A person would never desire to display not-found error pages to his new visitors. Therefore, it is essential to redirect all 404 not found pages to the home page URL so users can easily get access to the content that is waiting for them.  So we learn how to use this simple JavaScript code which does the job pretty nicely.  How to add Redirect 404 Not Found Page to the Home Page in Blogger first, you must learn two main about redirect page messages 404 Pages: The 404 not found error message of Blogspot.com is a form of standard H...