1 easy step to improve search box design
I stumbled upon a great little bit of code called Beautiful Form. It was written for Stylist, a program that is to CSS what Greasemonkey is to javascript. (So, it doesn't show up in Internet Explorer.) I liked it so much and wanted it to be incorporated into BlogU. So, I copied the code, made a few changes so it would blend with my blog and put it in the stylesheet. Here is what the search box looked like before and after:
Here is the code that I used:
@-moz-document url-prefix(http) {If you prefer to start with the orginal code, you can find it at userstyles.org.
/* change the buttons*/
input[type="reset"], input[type="submit"], button
{
-moz-border-radius: 0.5em !important;
border: 1px solid #CCC !important;
border-bottom: 1px solid #CCC !important;
background-color: #EEE !important;
color: #555555 !important;
}
input, textarea
{
-moz-border-radius: 0.8em !important;
}
input, textarea,select
{
background-color: #FFF !important;
border-top: 1px solid #C3C3C3 !important;
border-right: 1px solid #C3C3C3 !important;
border-bottom: 1px solid #C3C3C3 !important;
border-left: 1px solid #C3C3C3 !important;
color: #555555 !important;
}
/*change them on focus with a blue border*/
input:not([type="button"]):not([type="reset"])
:not([type="submit"]):not([type="checkbox"])
:focus,textarea:focus
{
-moz-outline-radius: 0.8em !important;
}
input:not([type="button"]):not([type="reset"])
:not([type="submit"]):not([type="checkbox"])
:focus, textarea:focus, select:focus
{
-moz-outline: 2px solid #ccc !important;
-moz-outline-offset: -1px !important;
}
/*rollover effect on the buttons*/
input[type="submit"]:hover,input[type="reset"]
:hover,button:hover {
border-color: #E8E9E8 !important;
border-bottom-color:#E8E9E8 !important;
background-color: #FCFCFC !important;
}
}
7 Comments:
Hi Annie, sorry this may be a very simple question, but I am new to Blogger. I cann't find a search engine widget to add to my blog in 'Layout'. Although I can add Google Search Engine but I want to add one like you have added. Please tell me how to do it.
The easiest way I've found is to use Han's widget. Go here:
Beautiful Beta
and look in his right sidebar for his search button. Right under it is a link to install it to your blog.
@shrish, Or, you could paste the code in this post between the <head> tags to get a button that will look like mine. Or, you could go to the original link (posted at the bottom of the post) and it will look different. Either way, you can format it to look the way you want.
you rock! My blog is all prettied up thanks to many of our tricks and tips.
oops
of your tricks
(sticky 'y' key)
Thanks for this, the code works perfectley.
The code is really good and working. Thanks for sharing with all.
I also recommend one good web designing company.