O'Reilly logo

Responsive Web Design with HTML5 and CSS3 by Ben Frain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bringing CSS3 properties together

Until now, we've largely been looking at abstract implementations of various CSS3 features. Let's use them together now to create our THESE SHOULD HAVE WON>> link. On the original Photoshop composite file for the AND THE WINNER ISN'T website, the button text uses custom typography, which we've already dealt with in Chapter 5, CSS3: Selectors, Typography, and Color Modes. However, it also has a red gradient background with rounded corners and a drop shadow behind it. This is what we have defined in the stylesheet currently:

#content a {
    text-decoration: none;
    font: 2.25em /* 36px ÷ 16 */ 'BebasNeueRegular';
} 

First, let's add a solid background color for older browsers. That way, should they be unable to render ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required