![]() |
| How to Create a Responsive Search Box on Blog |
How to Create a Responsive Search Box on a Blog – For a blogger or blog owner, creating a search box is very important. Because, for a website or blog, we must have a search box because it can make it easier for visitors to find what articles they are looking for.
How to Create a Search Box on Blog – Actually, the blogger site already provides a default search widget system (Search box), but the search widget is not responsive or arguably not mobile friendly. So here I will give you a responsive and mobile friendly search box.
You can also put this search box wherever you want such as in the sidebar, footer or header. Well, let’s get straight to the point and follow the tutorial How to Create a Responsive Search Box on a Blog.
How to Create a Responsive Search Box on Blog
1. Go to your blogger dashboard.
2. Click a layout.
3. Add a widget, then copy and paste the script code that I gave below.
4. Paste in add widget html/java script.
Search…” type=”text”/>
5. Change color Red with the words you want. Then click save, save the template and see the results.
How to Create a Responsive Search Box through Edit HTML.
1. Go to Dashboard.
2. Then click templates.
3. Edit HTML.
4. Then look for the code ]]> (Use CTRL + F for easier search).
#search-box{position:relative;margin:0 auto;border:1px solid #ccc;padding:5px;border-radius:4px}#search-form{height:40px;background-color:#fff;overflow:hidden }#search-text{font-size:14px;color:#ddd;border-width:0;background:transparent;line-height:15px}#search-box input[type=”text”]{width:90%;padding:10px 0 5px 1em;color:#333;outline:none}#search-button{position:absolute;top:5px;right:5px;height:40px;width:80px;color:# fff;text-align:center;border-width:0;background-color:#ff5848;cursor:pointer;text-transform:uppercase;border-radius:3px;outline:0}#search-button:hover{background: #333}
6. Then click save template and see the results.
How to Create a Blogger Default Search Box.
1. Go to the dashboard.
2. Click layout, add widget.
3. Then search search.
4. Then the settings according to your wishes.
5. Save, Save the template. Done and see the result.
How to Make a Cool Search Box on a Blog

1. Go to dashboard.
2. Click layout, add widget.
3. Copy and Paste the script code below.
.cf:before, .cf:after{
content:"";
display:table;
}
.cf:after{
clear:both;
}
.cf{
zoom:1;
}
/* Form wrapper styling */
.search-wrapper {
width: 220px;
margins: 45px auto 50px auto;
box-shadow: 0 1px 1px rgba(0, 0, 0, .4) inset, 0 1px 0 rgba(255, 255, 255, .2);
}
/* Form text input */
.search-wrapper input {
width: 138px;
height: 20px;
padding: 10px 5px;
float:left;
font: bold 15px 'lucida sans', 'trebuchet MS', 'Tahoma';
borders: 0;
background: #EEE;
border-radius: 3px 0 0 3px;
}
.search-wrapper input:focus {
outlines: 0;
background: #fff;
box-shadow: 0 0 2px rgba(0,0,0,.8) inset;
}
.search-wrapper input::-webkit-input-placeholder {
colors: #999;
font-weight: normal;
font-style: italic;
}
.search-wrapper input:-moz-placeholder {
colors: #999;
font-weight: normal;
font-style: italic;
}
.search-wrapper input:-ms-input-placeholder {
colors: #999;
font-weight: normal;
font-style: italic;
}
/* Form submit button */
.search-wrapper button {
overflow: visible;
position: relative;
float: right;
borders: 0;
padding: 0;
cursors: pointers;
height: 40px;
width: 72px;
font: bold 15px/40px 'lucida sans', 'trebuchet MS', 'Tahoma';
color: white;
text-transform: uppercase;
background: #D83C3C;
border-radius: 0 3px 3px 0;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
}
.search-wrapper button:hover{
backgrounds: #e54040;
}
.search-wrapper button:active,
.search-wrapper button:focus{
background: #c42f2f;
outlines: 0;
}
.search-wrapper button:before { /* left arrow */
content: '';
position: absolute;
border-width: 8px 8px 8px 0;
border-style: solid solid solid none;
border-color: transparent #d83c3c transparent;
top: 12px;
left: -6px;
}
.search-wrapper button:hover:before{
border-right-color: #e54040;
}
search-wrapper button:focus:before,
.search-wrapper button:active:before{
border-right-color: #c42f2f;
}
.search-wrapper button::-moz-focus-inner { /* remove extra button spacing for Mozilla Firefox */
borders: 0;
padding: 0;
}
Search here…” required=”” />
4. Click Save, Save Template.
5. Change the red color to your liking and see the results.
Read also:
