Minggu, 15 November 2009
How To Replace Submit Button With A Image
1.Login to your blogger dashboard--> layout- -> Edit HTML2.Scroll down to where you see </head> tag .
3.Copy below code and paste it just before the </head> tag .
<style type='text/css'>
.formbutton{
cursor:pointer;
border:outset 1px #ccc;
background:#999;
color:#fff;
font-weight:bold;
padding: 1px 2px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtjbIrghLcp0bOVc-U3EKt8QfLP1U2fh4y6Ea0vuEsJOpeFndTSrhoS487inNa02VKkyNzGBSXrjxQjmTKAYWZgq8Aa5xDGW-HHsVtauvqtBee6Zj3XrRYMe0MzC155o8pMhrYwprjQjY/s400/topnav_stretch.gif) repeat-x left top;
}
</style>
NOTE:You can use another image instead of above image and can change colors as your choice.
4.Now save your template.
5.Now add class="formbutton" into your input tag.Look at the example below.
<form>
<input type="text" style="width: 200px; border: 1px />
<input type="submit" class="formbutton" value="Subscribe" />
</form>
It will look like this:

Replace Submit Button With A Image
Langganan:
Posting Komentar
(
Atom
)
Tidak ada komentar :
Posting Komentar