Monday, 22 May 2017

CSS Buttons : Styling Input Button Control Using Css

5/22/2017 - By Pranav Singh 0

This article will show you how you can create stylish button using css in html web page or in your asp.net application.

Basic Button Styling

<!DOCTYPE html>
<html>
<head>
    <style>
        /* Red Button*/
        .buttonred {
            background-color#f44336;
        }
           /* Gray Button*/
        .buttongray {
            background-color#e7e7e7;
            colorblack;
        }
        /* Green Button */
        .buttongreen {
            background-color#4CAF50;
        }
        /* Black Button */
        .buttonblack {
            background-color#555555;
        }
        /* Blue Button*/       
        .buttonblue {
            background-color#008CBA;
        }
    </style>
</head>
<body>

    <button class="buttonred">Button Red</button>
    <button class="buttongray">Button Gray</button>
    <button class="buttongreen">Button Green</button>
    <button class="buttonblack">Button Black</button>
    <button class="buttonblue">Button Blue</button>

</body>
</html>


Button with Custom Size.

<!DOCTYPE html>
<html>
<head>
    <style>
        .buttonred {
            background-color#f44336;
            padding15px 32px;
        }
        /* Red Button*/
        .buttongray {
            background-color#e7e7e7;
            colorblack;
            padding15px 32px;
        }
        /* Gray Button*/
        .buttongreen {
            background-color#4CAF50;
            padding15px 32px;
        }
        /* Green Button */
        .buttonblack {
            background-color#555555;
            padding15px 32px;
        }
        /* Black Button */
        .buttonblue {
            background-color#008CBA;
            padding15px 32px;
        }
        /* Blue Button*/
    </style>
</head>
<body>

    <button class="buttonred">Button Red</button>
    <button class="buttongray">Button Gray</button>
    <button class="buttongreen">Button Green</button>
    <button class="buttonblack">Button Black</button>
    <button class="buttonblue">Button Blue</button>

</body>
</html>



Button With Border

<!DOCTYPE html>
<html>
<head>
    <style>
        .buttonred {
            background-colorwhite;
            colorblack;
            border2px solid #f44336;
            padding15px 20px;
        }
        /* Red Button*/
        .buttongray {
            background-colorwhite;
            colorblack;
            border2px solid #e7e7e7;
            padding15px 20px;
        }
        /* Gray Button*/
        .buttongreen {
            background-colorwhite;
            colorblack;
            border2px solid #4CAF50;
            padding15px 20px;
        }
        /* Green Button */
        .buttonblack {
            background-colorwhite;
            colorblack;
            border2px solid #555555;
            padding15px 20px;
        }
        /* Black Button */
        .buttonblue {
            background-colorwhite;
            colorblack;
            border2px solid #008CBA;
            padding15px 20px;
        }
        /* Blue Button*/
    </style>
</head>
<body>

    <button class="buttonred">Button Red</button>
    <button class="buttongray">Button Gray</button>
    <button class="buttongreen">Button Green</button>
    <button class="buttonblack">Button Black</button>
    <button class="buttonblue">Button Blue</button>

</body>
</html>




Tags: ,
About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Global Classified : Connectseekers.com
© 2014 aspdotnet-pools.com Designed by Bloggertheme9.
back to top