background preloader

Boutons

Facebook Twitter

Pushing Your Buttons With Practical CSS3 - Smashing Magazine. Advertisement CSS3 is the partially implemented sequel to the CSS2 spec we all know and love. It’s already popping up in new browsers such as Firefox 3.5, Safari 4 and Chrome. In this article, the first of the articles that explore practical (and even far-fetched) implementation of CSS3, we start by applying CSS3 to something we all have to create: buttons. Calls to action are critical for any website, and a compelling, attention-grabbing, clickable button goes a long way toward driving that engagement.

In the past, really awesome buttons needed extra markup, sliding doors or other trickery. We’ll show you here how to create nice button styles without any hacks or cheats. Step 1: The Super-Awesome Button Some time ago we published a post titled “Super Awesome Buttons with CSS3 and RGBa.” Using Box-Shadow and RGBa Our first goal when we were about to create a versatile family of buttons was to eliminate the problem that HEX-based drop-shadows have on different backgrounds.

Final Touches (al) Awesome Slide Out Button. Button Design Showcase. Button design is something that may be considered a small detail and doesn’t often get a lot of attention, but well-designed buttons can make a big difference in the overall look of a site. In this post we’ll look at 40 buttons that come in a variety of shapes, sizes, styles and colors.

Looking for hosting? WPEngine offers secure managed WordPress hosting. You’ll get expert WordPress support, automatic backups, and caching for fast page loads. Visit WPEngine. Roll Your Own Google Buttons - ZURB Playground - ZURB.com. Creating the Standard Buttons Google has a new focus on webkit-specific properties thanks to their new Chrome browser, which uses a branch of the same rendering engine Safari uses. This has actually allowed them to target the Google homepage to the webkit engine, probably after some sort of browser detection. The buttons use the -webkit-gradient function, which takes in arguments for the gradient start and stop points as well as color and then creates what the browser basically considers an image. That means we can use gradients anywhere we could use images, including backgrounds and even borders (with border-image).

Scaling the Buttons Because these buttons are generated entirely with vector objects and borders they can be scaled to any size. We can use both -webkit-transform to scale the image up directly, outside the DOM (as in example 1) or by increasing the button dimensions, padding and font-size (as in example 2). Scaled Button Large Button Buttons with Color Your ZURB ID explained. CSS3 Gradient Buttons. Last week I talked about Cross-Browser CSS Gradient. Today I'm going to show you how to put the CSS gradient feature in a good practical use. Check out my demo to see a set of gradient buttons that I have created with just CSS (no image or Javascript).

The buttons are scalable based on the font-size. The button size can be easily adjusted by changing the padding and font-size values. The best part about this method is it can be applied to any HTML element such as div, span, p, a, button, input, etc. What Is So Cool About These Buttons? Pure CSS: no image or Javascript is used. Preview The image below shows how the button will display in different browsers.

Button States normal state = gradient with border and shadow styles. hover = darker gradient active = gradient is reversed, 1px down, and darker font color as well. General Styles For The Button The following code is the general styles for the .button class. Color Gradient Styles The code below is the CSS styling for the orange button.