Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

WDS67- Style the Forms(Part 2)

In the last Article, we learned about styling the form elements and we covered input part of forms. In this article, we are going to cover remaining parts of form like menus and buttons.
Let's begin...

Style Menus

As we know, that to menus in HTML we use a select tag with dropdowns defined in options.We can use this select tag to Style the menus.
select {
    width: 100%;
    padding: 15px 15px;
    border: none;
    border-radius: 4px;
    background-color: #f1f1f1;

}

Button Styling

We have to cancel all text decorations to remove underline which is default. Also set cursor value to pointer so that to change how our mouse works.
input[type=button] {
    background-color: blue;
    border: none;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;

}

Let's create a final form using all the points learned in this two articles...


That's all for today. In the next article, we will learn about something new.
Till then #keepCoding.



This post first appeared on The Coding Express, please read the originial post: here

Share the post

WDS67- Style the Forms(Part 2)

×

Subscribe to The Coding Express

Get updates delivered right to your inbox!

Thank you for your subscription

×