You Are Here : Home » , » CSS Button for Links and Input Boxes

CSS Button for Links and Input Boxes

CSS is the most important of a website. It controls how the webpage will look and feel. With the help of this most important part of webdesign you can customize your website in the way you like. Here in this blog you will find many CSS tricks and Blogger Tricks. Keep reading, I am going to introduce you with some cool and flat CSS buttons that you will really like to use on your website.

CSS Button for Links and Input Boxes

If you're a regular visitor of this blog than you may be familiar with my earlier post on New CSS Download Buttons and CSS3 Download Buttons. All the buttons are unique and can be used in any types of blogs. Take a look at the buttons given below. Try clicking on "Click It!".

Click It

Click It

Click It

Feel some Clickable effect on clicking on the buttons? These buttons are designed with CSS3 which means it will be compatible only on the CSS3 supported browsers. Luckily all major browsers like Google Chrome, Firefox, Opera, Safari etc. supports CSS3. If you liked the above buttons than follow the steps given below to add these buttons on your website.
  • First, copy the CSS code given below and add it in your style.css file or just wrap the code under the style tags.
.large{font-size: 26px;}
  .medium{font-size: 20px;}
  .small{font-size: 16px}
.spicy {
outline:none;
border: 0;
color: white !important;
text-decoration: none !important;
padding: 10px 16px;
line-height: 1.4;
cursor: pointer;
text-decoration: none !important;
font-family: Segoe UI;
font-weight: bold;
display: inline-block;
}
.spicy:hover {color: #ffffff;}
.spicy:active {
-webkit-transform:translate(3px, 3px);
-moz-transform:translate(3px, 3px);
-ms-transform:translate(3px, 3px);
-o-transform:translate(3px, 3px);
transform:translate(3px, 3px)
}
 .spicy-blue{
background: #4e68c7;
box-shadow: 1px 0px 1px #203891,0px 1px 1px #3852b1,2px 1px 1px #203891,1px 2px 1px #3852b1,3px 2px 1px #203891,2px 3px 1px #3852b1,4px 3px 1px #203891,3px 4px 1px #3852b1,5px 4px 1px #203891,4px 5px 1px #3852b1,6px 5px 1px #203891;
}
.spicy-blue:active{
box-shadow:1px 0px 1px #203891,0px 1px 1px #3852b1,2px 1px 1px #203891,1px 2px 1px #3852b1,3px 2px 1px #203891;
}
.spicy-blue:hover{
background: #3d57b4;
}
 .spicy-black{
background: #40454d;
box-shadow: 1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #000,1px 2px 1px #404552,3px 2px 1px #000,2px 3px 1px #404542,4px 3px 1px #000,3px 4px 1px #404542,5px 4px 1px #000,4px 5px 1px #404542,6px 5px 1px #000;
}
.spicy-black:active{
box-shadow:1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #000,1px 2px 1px #404542,3px 2px 1px #000;
}
.spicy-black:hover{
background: #404542;
}
.spicy-purple{
background: #808095;
box-shadow: 1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #203891,1px 2px 1px #3852b1,3px 2px 1px #000,2px 3px 1px #404542,4px 3px 1px #000,3px 4px 1px #404542,5px 4px 1px #000,4px 5px 1px #404542,6px 5px 1px #000;
}
.spicy-purple:active{
box-shadow:1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #000,1px 2px 1px #404542,3px 2px 1px #000;
}
.spicy-purple:hover{
background: #808099;
}
  • Use the following HTML Link to use the buttons as your link.
<a class="spicy-black spicy small" href="#">Click It</a>
  • You can choose from three different colors. Replace # from the above HTML link with the link on which you want to show clickable button effect.
If you're facing little difficulties in understanding the above CSS codes and how to use them than see the following steps. If you are a Blogger user than follow the following steps to add these colorful CSS buttons in your Blogger blog.
  • At first, you will need to sign in to your Blogger account.
  • After signing go to the Dashboard of the Blog on which you want to add these CSS buttons.
  • Now navigate to Template from the Dashboard.
  • In the Template page you will see a button which says "Edit HTML". Click on edit HTML and after that you'll see full HTML codes of your blog.
  • Now press CTRL+F to open the search box. Search for ]]></b:skin> in your Template.
  • Now add the following CSS code just above or before ]]></b:skin>.
  • .large{font-size: 26px;}
      .medium{font-size: 20px;}
      .small{font-size: 16px}
    .spicy {
    outline:none;
    border: 0;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 16px;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none !important;
    font-family: Segoe UI;
    font-weight: bold;
    display: inline-block;
    }
    .spicy:hover {color: #ffffff;}
    .spicy:active {
    -webkit-transform:translate(3px, 3px);
    -moz-transform:translate(3px, 3px);
    -ms-transform:translate(3px, 3px);
    -o-transform:translate(3px, 3px);
    transform:translate(3px, 3px)
    }
     .spicy-blue{
    background: #4e68c7;
    box-shadow: 1px 0px 1px #203891,0px 1px 1px #3852b1,2px 1px 1px #203891,1px 2px 1px #3852b1,3px 2px 1px #203891,2px 3px 1px #3852b1,4px 3px 1px #203891,3px 4px 1px #3852b1,5px 4px 1px #203891,4px 5px 1px #3852b1,6px 5px 1px #203891;
    }
    .spicy-blue:active{
    box-shadow:1px 0px 1px #203891,0px 1px 1px #3852b1,2px 1px 1px #203891,1px 2px 1px #3852b1,3px 2px 1px #203891;
    }
    .spicy-blue:hover{
    background: #3d57b4;
    }
     .spicy-black{
    background: #40454d;
    box-shadow: 1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #000,1px 2px 1px #404552,3px 2px 1px #000,2px 3px 1px #404542,4px 3px 1px #000,3px 4px 1px #404542,5px 4px 1px #000,4px 5px 1px #404542,6px 5px 1px #000;
    }
    .spicy-black:active{
    box-shadow:1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #000,1px 2px 1px #404542,3px 2px 1px #000;
    }
    .spicy-black:hover{
    background: #404542;
    }
    .spicy-purple{
    background: #808095;
    box-shadow: 1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #203891,1px 2px 1px #3852b1,3px 2px 1px #000,2px 3px 1px #404542,4px 3px 1px #000,3px 4px 1px #404542,5px 4px 1px #000,4px 5px 1px #404542,6px 5px 1px #000;
    }
    .spicy-purple:active{
    box-shadow:1px 0px 1px #000,0px 1px 1px #404542,2px 1px 1px #000,1px 2px 1px #404542,3px 2px 1px #000;
    }
    .spicy-purple:hover{
    background: #808099;
    }
  • Click on Preview button to check for if their are some errors. If you don't find any errors than save your template by clicking Orange Save Template button.
We have now finished adding the required CSS codes in your Blogger Template. Now follow the steps shown below to use those buttons on your post.
  • Create a new post or edit the existing one.
  • Now switch to HTML mode by clicking the HTML button which is in the left corner of your post editor.
  • After switching to HTML mode, add the following HTML link code anywhere in your HTML section of your post.
<a class="spicy-black spicy small" href="#">Click It</a>
  • Replace # from the above link code with the link on which you want to make the button to appear. You can Replace Click It! with the text which you want to show on your button.
You can choose from three different color options. Now first see the HTML link code below to understand it.
<a class="spicy-black spicy small" href="#">Click It</a>

If you want a grayish or black color button than replace the text highlighted in red with spicy-black. If you like the purple colored button than replace the red colored text with spicy-purple. Now, if you want the blue colored button than replace the text highlighted in red with spicy-blue. You can also choose from three different sizes. Just replace small from the above link with medium, large or small.
If you want to use this button on your input tags than use the following code.
<input type="button" class="spicy-black spicy small" value="Click It!"/>
You can use these buttons on any type of clickable area. Just keep the class for these buttons in your mind. You can clearly see the class for these button are spicy-black spicy small. You can place class as class="spicy-black spicy small" in the HTML link.

That's All! I hope you liked these CSS buttons for Links and Input boxes. Keep visiting for more Design Tweaks. If you need help than drop a comment below.

Ads by Google
If you enjoyed reading this article then please leave a comment or subscribe to our newsletter to get all the future posts delivered to your feed reader or you email desk.

2 comments:

  1. Replies
    1. Its a WordPress template. After making it fully compatible and stable with Blogger, I will share this template on my post. It may take a while as I am busy in some other things.

      Delete

Welcome to SpicyTweaks.

Copyright © 2013-17 SpicyTweaks. All Rights Reserved.

Scroll to top