Category: CSS

Categories

CSS / 4 Oct 2012

How to Use Adobe Edge Web Fonts on Your Site

Adobe recently launched a free web font service to complement Typekit, their amazing premium service. Adobe Edge Web Fonts currently gives you around 500 free font families that you can use on your site today with little effort. How great is that?

The process for implementing these fonts isn’t quite as straightforward as some of the other services that you might be used to, so today we’re going to dive in and take a look at how it all works.

CSS / 13 Sep 2012

Inner Shadows in CSS: Images, Text and Beyond

Shadows in CSS are quick and easy, whether you’re slapping on a box-shadow or a text-shadow. But how comfortable are you with inner shadows? Can you pull off an inset box-shadow? How do you do the same thing on some text?

Today we’re going to learn some really simple inset shadow techniques that you can pull off with just a few lines of code. I’ll walk you through both the box-shadow and text-shadow syntax and how to change them to pull off an inset shadows.

CSS / 6 Sep 2012

Toggle a Page’s Color and Content With Pure CSS

Today’s project is going to be a fun one. We’re going to build a basic HTML/CSS demo page, then add in a button that allows the user to toggle the page’s color scheme between to states: day and night. As the colors switch, so will various other elements on the page.

The really awesome part is that we can pull all of this off using only CSS. Along the way we’ll learn how to create a CSS-powered click event as well as how to wield pseudo elements to manipulate page content.

CSS / 5 Sep 2012

Build a Fun Photo Swap Animation With CSS Keyframes

CSS keyframe animations open up a vast range of possibilities for what can be accomplished with CSS. Much more than simple, one-step transitions, keyframes can be used to achieve complex, multi-step animations that are quite impressive.

In today’s project, we’re going to start from scratch and build a stack of two photos that spread out and swap their stacking order when you hover over them. Along the way we’ll learn all about how to wield keyframes like a pro and juggle all of those head-spinning prefixes!

CSS / 4 Sep 2012

A Beginner’s Guide to Leaner CSS

Don’t repeat yourself (DRY). It’s a simple concept with the ability to completely change the way you write code. If I look back to my early days with CSS though, I don’t think the concept meant much to me. Sure, all right, don’t repeat myself, thanks for the advice. How does that translate to applicable advice though?

Today we’re going to look at the very core concepts for how to rethink the CSS you’ve been writing by trimming the fat and reducing the redundancy. The result will be leaner CSS that’s easier to author and maintain.

CSS / 3 Sep 2012

Code a Mountain Lion Style Notification Window With CSS

This one is for my fellow Mac nerds. Apple’s newest desktop operating system, OS X Mountain Lion, has a built-in notification system similar to what we’ve had on iOS for years. Today we’re going to build one of the notification windows using CSS.

To pull this off, we’ll use some basic HTML and a little bit of fancy CSS3. To finish it off, we’ll add a touch of jQuery magic to allow the user to drag the window around. It’ll be tons of fun, so boot up your favorite coding app and follow along!

CSS / 28 Aug 2012

Semantic Grid Class Naming With Placeholder Selectors in Sass 3.2

CSS frameworks are known for taking a club to the idea of semantic HTML. This is such a problem that developers everywhere have entirely sworn off the idea of grid-based frameworks solely on the principle that it leads to non-semantic class names.

With Sass, it becomes quite easy to work around this problem and use a predefined grid without resorting to wonky class names. In fact, the latest version of Sass (3.2) has a new feature that makes this task easier than ever. Read on to see what it is and how it works.

CSS / 13 Aug 2012

Master Responsive Web Design With Gridset

Let’s face it, responsive design is hard work. Web design was difficult enough when we were only considering desktop platforms, but the challenge of seemingly infinitely varying screen and viewport sizes has really added to the complexity of website layout.

Whether you’re completely new to responsive design or consider yourself an expert in the area, the tool that we’re going to look at today will blow you away. It’s called Gridset and it’s amazing.

CSS / 9 Aug 2012

5 Design Lessons That I Learned From Writing 85 Web Design Critiques

Here at Design Shack we offer a simple but useful service called a web design critique. It’s basically a consulting service that you can take advantage of for a mad cheap price in exchange for letting us post it on the site as an educational tool.

I’ve personally written up a whopping eighty five of these things thus far (#85 will be posted later this week). That’s a whole lot of design advice! Read on to see what I’ve learned about web design in the process, both from the good examples and the bad.

CSS / 8 Aug 2012

Which Is Right for Me? 22 Responsive CSS Frameworks and Boilerplates Explained

CSS frameworks have been around for years now, but the arrival of responsive design practices has rendered many of our old favorites useless. Fortunately, lots of really talented developers have jumped in to fill the gap with the next generation of CSS frameworks and boilerplates.

There’s already a ton of these things floating around. Everyone has a list, but no one really walks you through how each framework and boilerplate differs from the next so that you can make an informed decision. That’s our goal today. Follow along as we take a look at what makes each of these 22 responsive CSS frameworks and boilerplates unique.

CSS / 1 Aug 2012

A Beginner’s Guide to Using Google Web Fonts

When Google Web Fonts was first released, we wrote up a quick walkthrough. Since then, the service has been completely overhauled and it’s high time for a thorough walkthrough from scratch.

Join us as we start at the very beginning and discuss what the Google Web Fonts service is and how to get it up and running on your site today. Give us a few minutes of your time and we’ll open you up to the awesome world of awesome free web fonts.

CSS / 3 Jul 2012

3 Quick Ways to Show Attention to Detail in Web Design

With today’s current design trends I’m of the view that attention to detail is perhaps the most important part of any design, be it web or print.

In this article, I’m going to exhibit a few examples of designs on the web that lack that little bit of detail that would make the websites a much more pleasant place to explore.