From the course: Productivity Tips for Web Designers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Creating stitched borders with CSS

Creating stitched borders with CSS

From the course: Productivity Tips for Web Designers

Start my 1-month free trial

Creating stitched borders with CSS

- Hello everyone, this is Sue Jenkins with Productivity Tips for Web Designers. In this week's lesson I'll show you a simple, effective technique to create a stitched border effect with CSS. Adding a stitched border effect to an object gives it a hip, 3D, tactile appearance that many people find attractive. You can use this style on any element like buttons, banners, and icons, but be careful not to overdo it. As with any style less is often more so use this technique selectively to add emphasis to a particular area of your site. Let's start a basic stitched border. You'll begin by creating a div container on your page with a class attribute called stitched. It's okay to give an element a style before you've created the CSS. Then duplicate your container twice more so you have a set of three stacked divs. Now create a style called stitched with the following attributes including padding, margin, color, font, border, background-color, and shadow styles. In this example I've made the…

Contents