Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • About
    • Entrepreneurial Journey
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Podcast
  • Newsletter
  • Media
    • Photo Galleries
    • Video Archives
  • Marketplace
    • eBay
    • Buying Gold & Silver
    • Accoutrements
      • Bags & Briefcases
      • Notebooks
      • Pens
      • Personal Carry
      • Wallets
      • Watches & Jewelry
    • Poshmark
    • Artwork
    • Banknotes & Currency
      • Currency
      • Gold Banknotes
      • Silver Certificates
    • CIvil War Relics
    • Native American Artifacts
    • Rare Books
    • Rare Coins
      • Coin Sets
      • Individual Coins
    • Signs & Advertising
    • Stock Certificates
    • Trading Cards
      • Trading Cards: Autographs
      • Trading Cards: Base
      • Trading Cards: Graded
      • Trading Cards: Raw
      • Trading Cards: Pokémon
      • Trading Cards: Sets
    • Vintage Toys
      • Buddy L
      • Ertl Farm Toys
      • GI Joe
      • Masters of the Universe
      • Hot Wheels
      • Lionel Trains
      • Lunch Boxes
      • Marx Toys
      • NASCAR Die-Cast
      • Schleich Toys
      • Star Wars
      • Tonka Trucks
    • Vintage T-Shirts
    • Vinyl Records
  • Connect
You are here: Home / Marketing & Tech / Using CSS3 Gradient Buttons

Using CSS3 Gradient Buttons

September 18, 2012 by Cotton Rohrscheib Leave a Comment

Okay, so Brian Gardner shared something pretty cool on his blog the other day and I wanted to be sure to share it here as well because I always like referring back to cool tricks like this from time to time on client projects.

Occasionally there are times when you might want to add a button to a page or post as opposed to a text link to draw attention to the call to action for your readers. Here’s what Brian shared, it has a few steps so I will list these along as I go. This example is making buttons for social networks but the same idea can work for any number of things.

The first thing you will want to do is to add this to your stylesheet:

/* Gradient Social Media Buttons
------------------------------------------------------------ */

a.button-dribbble,
a.button-facebook,
a.button-googleplus,
a.button-linkedin,
a.button-pinterest,
a.button-rss,
a.button-tumblr,
a.button-twitter {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
box-shadow: 0 1px 1px #999;
color: #fff;
display: inline-block;
font-size: 16px;
margin: 0 20px 20px 0;
padding: 10px 15px;
text-align: center;
width: 130px;
}

Next, you will want to add the CSS for each of your buttons listed above. This is an example of what the CSS would look like for the a.button-dribble:

a.button-dribbble {
background-color: #c93764; /* fallback color */
background: -moz-linear-gradient(top, #ea4c89, #c93764);
background: -ms-linear-gradient(top, #ea4c89, #c93764);
background: -webkit-linear-gradient(top, #ea4c89, #c93764);
border: 1px solid #c93764;
text-shadow: 0 -1px -1px #9d2849;
}

a.button-dribbble:hover {
background: -moz-linear-gradient(top, #c93764, #ea4c89);
background: -ms-linear-gradient(top, #c93764, #ea4c89);
background: -webkit-linear-gradient(top, #c93764, #ea4c89);
}

Once you have all the buttons defined in your CSS then you can add them wherever you would like on your site by entering in the following code:


<a class="button-dribbble" href="#">Follow me on Dribbble</a>

Once you have completed all of the steps above and inserted the html code into your page / post, your end result should look like this:

Checkout StudioPress

Filed Under: Marketing & Tech Tagged With: CSS, CSS3, HTML, studiopress

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Leave a Reply Cancel reply

You must be logged in to post a comment.

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • The Marketplace is now Connected to eBay!
  • Ep034: Cotton Rohrscheib & Tim Volberding
  • I Stay on Track w/ Reminders & Task Lists
  • It’s a Really Dry Start to the Season…
  • Trading Card Grading Services

Blog Categories

  • Blog (440)
  • Entertainment (378)
  • Faith & Family (155)
  • Farm & Business (302)
  • Health & Wellness (38)
  • Marketing & Tech (592)
  • Podcasts (33)
  • Urban Farming (24)
  • Weekend Projects (10)

Blog Archives

Join the Cotton Club!

 

Content Copyright © 2000-2026
Cotton Rohrscheib | Rohrscheib Capital
Disclaimer | Privacy Policy | Account Manager | View Cart

All opinions expressed on this website are 100% Cotton (see my disclaimer). All content, including text, images, and media, are the intellectual property of Rohrscheib Capital unless otherwise noted. To learn how we use your private information, checkout our privacy policy.