Stylish Button using only css

In this article, we will show stylish Button using only css, many time we need to design the Button to make our web site beautiful and attractive.



Source Code:-

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="stylishbutton.aspx.cs" Inherits="stylishtextbox" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>stylish Button</title>
    <style type="text/css">
        .button
        {
            font-family: Georgia;
            font-size: 18px;
            color: White;
            padding: 4px 45px;
            margin: 0 20px;
            text-decoration: none;
            border: solid 1px #720000;
            background-color: #c72a2a;
            background: -moz-linear-gradient(top, #c72a2a 0%, #9e0e0e 100%);
            background: -webkit-linear-gradient(top, #c72a2a 0%, #9e0e0e 100%);
            background: -o-linear-gradient(top, #c72a2a 0%, #9e0e0e 100%);
            background: -ms-linear-gradient(top, #c72a2a 0% ,#9e0e0e 100%);
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9e0e0e', endColorstr='#9e0e0e',GradientType=0 );
            background: linear-gradient(top, #c72a2a 0% ,#9e0e0e 100%);
            -webkit-box-shadow: 0px 0px 1px #FF3300, inset 0px 0px 1px #FFFFFF;
            -moz-box-shadow: 0px 0px 1px #FF3300, inset 0px 0px 1px #FFFFFF;
            box-shadow: 0px 0px 1px #FF3300, inset 0px 0px 1px #FFFFFF;
            -webkit-border-radius: 50px;
            -moz-border-radius: 50px;
            border-radius: 50px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
   
    <asp:Button ID="Button1" runat="server" CssClass="button" Text="Submit" />
    </form>
</body>
</html>


 Out-Put:-


Stylish Button using only css Stylish Button using only css Reviewed by NEERAJ SRIVASTAVA on 3:49:00 PM Rating: 5

No comments:

Powered by Blogger.