ASP.NET - Stylish submit buttons
Sep 21, 2009
0
comments
Most people would agree the default look of submit buttons is rather dull and unattractive. Using CSS and a nice gradient background image, it's easy to transform a form button from a duck to a swan. ![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx8F3TGG2ZZPkZVVxEn2Wjy9Ua1YQOgluUFQ2Kn0ri2Q0guGQJ8Lxuv5gIll4l_CnMdPNmV3jiGtgUU7-zqg39gw_G56hvSGwgfg-cLE_XSb032U-xrp9ZdNpuEC0TaQHGGGkOPyq79DQ/s320/demo.JPG)
Demo:
<style type="text/css">
.formbutton{
cursor:pointer;
border:outset 1px #ccc;
background:#999;
color:#666;
font-weight:bold;
padding: 1px 2px;
background:url(formbg.gif) repeat-x left top;
}
</style>The image used:
<form>I hope this ll help you. A 'Thank You' would be nice!
<input type="text" style="width: 200px; border: 1px solid gray" />
<input type="submit" class="formbutton" value="Submit" />
</form>
Share
Labels:
ASP.NET