Pushing the Right Buttons: A Comprehensive Guide to Effective Website Button Design
Buttons are the secret weapon in every web designer‘s arsenal. Those simple rectangles and rounded corners may seem unassuming, but make no mistake: Buttons wield incredible power to shape user journeys, motivate action, and even tell stories. Get them right, and buttons become portals that effortlessly whisk visitors from Point A to Point Buy. Miss the mark, and you risk frustrating users and torpedoing your conversion rates.
Consider this eye-opening data point: Something as seemingly minor as a button‘s color can swing click-through rates by 21%, according to a study by HubSpot. And when a site meets users‘ expectations for button placement and behavior, overall engagement can soar by up to 40%, as reported by Google.
Bottom line? Paying attention to button design pays dividends.
In this comprehensive guide, we‘ll dive deep into the art and science of crafting website buttons that don‘t just look great, but meaningfully impact your business‘s bottom line. We‘ll explore core principles based on time-tested research, showcase inspiring examples, and walk through how to bring it all together in CSS. By the end, you‘ll have a blueprint for architecting buttons that point your visitors in all the right directions.
Decoding Effective Button Design: 4 Psychological Principles
Many elements vie for attention in website design, from punchy copy and eye-catching visuals to savvy layouts and snappy animations. But when it comes to driving action, buttons are the linchpin. Why? Because buttons provide the all-important links between where users are and where they (and you) want them to go.
In that way, buttons are like signposts on the user journey. And just like signs in the real world, they need to clearly convey information and inspire confidence to be effective. Luckily, decades of research in fields like cognitive psychology offer us reliable guidelines for pushing users‘ buttons in all the right ways.
1. Make Them Pop (But Not Too Much)
For buttons to fulfill their wayfinding mission, users need to notice them quickly and easily. Color plays a huge role here. In a study on CTA button design, researchers at the University of Winnipeg found that brightly-colored buttons outperformed greyscale and white buttons by up to 35% in commanding users‘ attention.
But before you start splashing neon hues willy-nilly, note that context matters tremendously. A red button, for instance, will stand out dramatically against a largely white background, but it may blend right into a page dominated by warm tones. The goal isn‘t just to make buttons jump off the screen for the sake of it; it‘s to create clear visual contrast that guides users‘ eyes exactly where you want them to go.
Additionally, be wary of overwhelming visitors with too many standout buttons, which can lead to the dreaded problem of choice paralysis. The folks at Basecamp saw a 13% drop in conversions when they added a third button to their hero section. When in doubt, limit yourself to one or two primary CTAs per page and make their styling work hard to emphasize the clear next step.
2. Label Them for Action
If a button‘s color attracts attention, its copy seals the deal. And when it comes to spurring action, verbs reign supreme. That‘s because, as famed UX expert Jared Spool explains, "A button‘s label should always tie to what will happen when it‘s clicked."
For example, instead of a generic "Submit" label on a form button, try something specific like "Claim My Discount" or "Get the Guide." These action-oriented labels give users a concrete sense of what they‘ll get in exchange for their click.
And don‘t be afraid to have a little fun with your button copy, when appropriate. Witty or playful labels, like Snapchat‘s "Make My Day" CTA, can go a long way in building brand affinity. Just be sure not to sacrifice clarity for the sake of cleverness.
3. Mind Your Microcopy
Speaking of copy, have you ever seen a button that made you think twice? Maybe it was a "Buy Now" CTA that gave you pause because you weren‘t sure if it would also submit your billing info. Or a form submit button that left you wondering if you‘d also be signing up for promotional emails.
That‘s where microcopy comes in. Those tiny snippets of explanatory text around buttons can have an outsized impact on conversions by addressing users‘ hesitations and greasing the wheels of action.
Take the example of a button to submit an order. Adding a simple phrase like "You‘ll review your order before it‘s final" or "No payment info needed yet" can allay visitors‘ worries and make them more likely to click through.
Even a well-placed icon, like a padlock symbol or a checkmark, can work wonders in communicating trustworthiness at the point of action. In one case study by Baymard Institute, a major ecommerce site saw a 19% lift in conversions by adding a "No Spam" microcopy below its email signup button.
4. Put Them Where They Count
You can craft the most eye-catching, compellingly-labeled button in the world, but if users can‘t find it quickly or encounter it at the wrong moment, it might as well not exist. Placement and repetition are key to getting the most bang for your button buck.
Let‘s start with above-the-fold placement. The Nielsen Norman Group has consistently found that content above the fold gets 84% more attention than stuff that requires scrolling. The same goes for buttons; those in the top half of the viewport pull between 61 and 93% of clicks, according to data from Google.
But that doesn‘t mean you can just plop your buttons up top and call it a day. They also need to flow logically from your content and align with how users naturally navigate pages. As a general rule, place buttons directly below or to the right of the relevant information.
Finally, don‘t be shy about repeating important CTAs in multiple locations, especially on long pages. It‘s a surefire way to catch users whenever they reach a decision point. For instance, the folks at Hotjar provide the same "Try It Free" button in both the top-right corner and bottom-center of their homepage, making the CTA unmissable.
Pushing Pixels: A Step-by-Step Guide to Coding Buttons in CSS
Now that we‘ve covered core button design principles, let‘s roll up our sleeves and get tactical. While you can certainly use pre-built button elements from UI frameworks, there‘s nothing like having full control over every property to get your buttons looking and working just right.
That‘s where CSS comes in. With this stylesheet language and a sprinkle of HTML, you can conjure up custom buttons and fine-tune them to your heart‘s content. Here‘s a crash course.
Step 1: Lay the groundwork in HTML
Before we touch any styles, we need to set up our button‘s structural foundation using HTML. The aptly-named <button> element will do the trick nicely:
<button>Press Me</button>
Simple enough, right? That code will render a basic button with the text "Press Me." But we can soup it up with a few extra attributes:
<button class="cta" type="button">
<span>Yes, I Want the Discount!</span>
</button>
Here, we‘ve given our button a class of "cta", which will allow us to hook into it with our CSS later. We‘ve also explicitly set the type to "button" to make sure it doesn‘t default to a submit button if placed in a form. Finally, we‘ve wrapped the button text in a <span> tag, which will come in handy for some fancy text styling in a bit.
Step 2: Style It in CSS
Now for the fun part! Let‘s head over to our stylesheet and start pushing pixels. First, we‘ll target our button using that "cta" class we added:
.cta {
/* Styles go here */
}
Inside that selector block, we can start specifying values for all the various properties that affect our button‘s look and feel. Here are a few key ones to consider:
Size & Spacing
Use width and height to set your button‘s overall dimensions. You can use pixels for fixed sizes or percentages for responsive widths. Add padding to control the space between your button‘s text and its edges:
.cta {
width: 300px;
height: 75px;
padding: 8px 20px;
}
Color
As we touched on earlier, color is crucial for making buttons stand out. Use background-color to set your button‘s main color and color for the text. You can also toss in a semi-transparent background color to give your button some depth.
.cta {
background-color: #4c8efa;
color: white;
box-shadow: 0 4px 0 0 rgba(76, 142, 250, 0.2);
}
Typography
To get your button‘s text looking sharp, play around with the font-family, font-weight, and text-transform properties. In general, bold, uppercase text tends to command more attention.
.cta {
font-family: Helvetica, Arial, sans-serif;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 1.25px;
}
Borders & Rounded Corners
Wrap your button up nicely with the border property, specifying the width, style, and color. If you‘re after those trendy rounded corners, toss in border-radius. A value of 8px is a good starting point for subtle rounding.
.cta {
border: 3px solid #214991;
border-radius: 8px;
}
Hover States
Finally, let‘s add some sizzle that activates when a user mouses over our button. We can target the hover state with the :hover pseudo-class and specify any properties we want to change on hover, like the colors or size.
.cta:hover {
background-color: #214991;
transform: scale(1.05);
cursor: pointer;
}
And there you have it! A beautifully hand-crafted button, ready to be deployed on your site. Here‘s the complete CSS:
.cta {
width: 300px;
height: 75px;
padding: 8px 20px;
background-color: #4c8efa;
color: white;
box-shadow: 0 4px 0 0 rgba(76, 142, 250, 0.2);
font-family: Helvetica, Arial, sans-serif;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 1.25px;
border: 3px solid #214991;
border-radius: 8px;
transition: all 0.3s ease;
}
.cta:hover {
background-color: #214991;
transform: scale(1.05);
cursor: pointer;
}
Of course, this is just scratching the surface of what‘s possible with CSS buttons. You can get way more advanced with properties like gradients, animations, and shadows to create buttons that really pop. The key is to experiment and see what works best for your particular use case and audience.
The Best Tools for Button Design Mastery
While we‘re big proponents of rolling your own buttons, there‘s no denying the convenience (and speed) that tools can provide, especially when you‘re trying to mock up a design quickly or don‘t have coding chops.
Problem is, not all button makers are created equal, and wading through the sea of options can be overwhelming. To help you zero in on the cream of the crop, we‘ve rounded up our picks for the best tools out there, from full-fledged design apps to lightweight generators.
Figma
Arguably the gold standard in UI design tools, Figma boasts a robust button element as part of its impressive library of components. With a few clicks, you can customize everything from border radius to drop shadows. And since it‘s browser-based, collaboration is a breeze.
Perfect For: Designers looking to rapidly prototype buttons and sync up with developers.
Adobe XD
Adobe‘s answer to Sketch offers a similarly powerful button toolkit, with the added benefit of integrating seamlessly with Creative Cloud apps like Photoshop and Illustrator. Its Auto-Animate feature is especially nifty for mocking up interactive button states.
Perfect For: Designers already immersed in the Adobe ecosystem who want to link up their button designs with other creative assets.
CSS Button Generator by Toptal
Don‘t let the bare-bones interface fool you; this free tool, courtesy of the elite design shop Toptal, offers a surprising depth of customization. You can adjust everything from text padding to transition duration, then grab the clean CSS output.
Perfect For: Non-designers who need to quickly whip up functional buttons without fancy effects.
UIverse
With a slick, no-code editor and a library of plug-and-play button designs, UIverse makes it a snap to create buttons that look like they were birthed from a top agency. Its most notable feature? The ability to upload your own icons and images to truly make your buttons your own.
Perfect For: Marketing teams that need on-brand buttons stat, without bugging their in-the-weeds design squad.
Buttonoptimizer
True to its name, this tool is all about optimizing your buttons to the hilt to wring out every possible conversion. In addition to visual customization options, it offers built-in A/B testing and analytics to help you pit your button variants against each other and surface a winner.
Perfect For: High-stakes landing pages and ecommerce shops where every extra click counts.
Buttons Up: Final Takeaways
Phew! We‘ve covered a lot of ground in this guide to effective website button design. Let‘s recap the key points:
- Buttons are not just an afterthought; they‘re critical signposts that direct users through your site and funnel them toward conversion
- The best buttons follow core usability principles:
- They pop off the page (in a good way)
- They sport clear, action-oriented labels
- They leverage microcopy to address hesitations
- They appear in all the right places
- While there are endless ways to style buttons in CSS, focusing on a few key properties (color, typography, spacing, hover states) can get you 90% of the way there
- Tools can be a huge help in streamlining your button design process, but they‘re no substitute for a strong grasp of the fundamentals
Now it‘s time for you to go forth and elevate your button game. Audit your current buttons with a critical eye, identifying where they fall short of the principles outlined here. Mock up some new variants in your tool of choice. Then roll out your spiffy new buttons and watch your conversion rates climb.
And remember, buttons are just one piece (albeit an important one) of the overall user experience puzzle. Make sure they work in concert with your site‘s other elements, from the overarching information architecture to the tiniest bits of microcopy. Your visitors (and your bottom line) will thank you.
