Web Design

Big Call-to-action button: CSS Example

date posted

03/07/15

read time

2 Mins

A green rectangular call-to-action button with the text "GET STARTED NOW!" in white capital letters, serving as a perfect example of effective CSS design.

I found this glorious button when setting up Jetpack for WordPress, and love the pressability. In User Experience… clues that something is clickable are referred to as “affordance.” This button takes advantage of some dynamics associated with the modern flat design feel but isn’t confined by it. It’s a really lovely design.

This is an example of it in action. (Try pressing it – its set up here to bring you somewhere on this page. )

Get Started !

A screenshot on another site:

CSS Jetpack button snippet, affordance. Pressable

The HTML

<div class=”converter”><a href=”/your-link”> Get started! </a></div>

The CSS

.converter a {
background: -webkit-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%);
background: -moz-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%);
background: -ms-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%);
background: -o-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%);
background: linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%);
padding: 13px 27px;
border-radius: 5px;
color: #333;
display: inline-block;
position: relative;
padding: 0.64286em 0.85714em 0.53571em;
color: #fff;
font: 400 20px/1 “proxima-nova”, ‘Open Sans’, Helvetica, sans-serif;
background: #518d2a;
z-index: 3;
border-radius: 6px;
box-shadow: 0 6px 0 #3e6c20,0 6px 3px rgba(0,0,0,0.4);
}
.converter a:hover, .converter a:focus {
color: #fff;
background: #57972d;
box-shadow: 0 6px 0 #3e6c20,0 6px 3px rgba(0,0,0,0.4);
}

A photo of it being pressed on another site
On press, button, sexy tasteful bold button, call to action, cta

The Active CSS (Being Pressed)

.converter a:active {
top: 6px;
box-shadow: 0 0px 0 #3e6c20,0 0 0 rgba(0,0,0,0.4);
}

And of course, change the colors to taste!

Learn How To Do Google Local Service Ads Yourself (Free DIY Course)

Want to know how to start getting Local Service Ads leads on your own?

🎥 3 original videos designed to help you get started on LSA Ads.

🔥 Get the ‘Google Guaranteed’ badge to use in other marketing as well.

📈 Only pay per lead, and start getting more leads soon!

Is there you or someone on your team that would like to take it? Enter their info (or yours) below!

Ready to take the leap?

“We know what it takes to help get home service businesses more leads with Google. Even if we’re not the right fit, we’ll get you where you need to go.”

A woman with long, wavy brown hair stands confidently in front of a black brick wall, embodying Tim Brown's iconic urban style. She wears a black top and accessorizes with a heart pendant gold necklace.
- Sydnee Olsen, Sales Lead
Schedule Intro Call Schedule a Free 20-Minute Consultation (No Obligation)