Add Search Box & Style It

Posted: February 18, 2014 in Komputer, Wordpress

<form id=”searchform” action=”http://yourwebsite.com&#8221; method=”get”>
<input id=”s” class=”text_input” type=”text” onblur=”if (this.value == ”) {this.value = ‘Search . . .’;}” onfocus=”if (this.value == ‘Search . . .’) {this.value = ”;}” name=”s” value=”Search . . .”/>
<input id=”searchsubmit” type=”submit” alt=”Go” value=”Go”/>
</form>
<style>
header {
position: relative;
}

#searchform {
position: absolute;
left: 950px;
top: 50px;
}
</style>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s