Search Box by eckert


This is the search box that I always use.  It has >> for the button and a value of “Search…” that disappears when clicked.

<form method="get" id="searchform" action="http://mrcomplain.com/">
<div><input type="text" value="Search" onclick="value=''" name="s" id="s" />
<input type="submit" id="searchsubmit" value=">>" />
</div>
</form>

You can then position the search form using CSS.  The following is an  example, but you will obviously need to change the information contained therein to make it fit on your page -

#searchform {
	position: absolute;
	top: 231px;
	left: 50%;
	margin-left: -250px;
	padding: 5px 3px;
	}

#searchform #s {
	width: 135px;
	padding: 2px;
	}

#searchsubmit {
	padding: 1px;
	}

Tags: , , , , , , ,

Leave a Reply


It’s Called Web Design is sponsored by Seeing Interactive and powered by WordPress
Entries (RSS) and Comments (RSS).
52 queries. 0.471 seconds.