Treehouse: Grow your CSS skills. Land your dream job.

Article Archives

38 comments

Triangle With Shadow

You probably already know you can make triangles with CSS. But what if you want to put a shadow behind it? Unfortunately the classic border trick doesn't change the shape of the element, it's just a visual trick. Let's look at a couple alternative solutions.…

48 comments

Saving the Day with Scoped CSS

One little known feature of HTML5 is Scoped CSS. It's an attribute for style blocks that may change the way we tackle certain styling challenges in the future.

Refactoring >14,000 lines of CSS

Eugene Fedorenko talks about how Beanstalk refactored the whole app to use SASS. I'm sure a lot of folks are in this situation right now. You want to use SASS, but you have a big app and it's a big move. Short answer: yes.

The only thing I'd suggest they do differently is use Compass. I've also been involved with big SASS rewrites, none of which used Compass, and I highly regret it as: 1) inconsistent mixins across projects blows …

Fred Boyle’s Code Challenge

Between now and the end of May 2012, code a small project using a language or environment that's new to you or that you've only casually messed around with.…

Automatic responsive images in WordPress

The main trouble with the existing fancy methods for serving images responsively is manually generating the images and syntax needed to utilize it. Keir Whitaker show us how to use WordPress to handle all that hard stuff for us. …

The CSS3 Experience

Soak in a little An Event Apart without leaving your house. Dan Cederholm (you know, the other banjo playing CSS guy) with an hour talk on responsible and enhancement-based CSS3 use.…

ShopTalk Episode 14

Another RAPIDFIRE episode this week loaded with all Q&A. If you like the guest episodes, don't worry, we have plenty coming up.…

Updated: The Current State of HTML5 Forms

It's been about a year, so I redesigned and updated all the support information here. Added Android. Lots more green, but we're still quite a ways off from using features like validation without fallbacks.…

35 comments

On :target

The :target pseudo selector in CSS is both pretty cool and pretty limited in what it can do. In this article we discuss some things it can be helpful with, its limitations, and some work arounds.

ShopTalk Episode 13

Rapidfire show! No guest, no news, not hot drama, just all question on answer action.…

98 comments

On Responsive Images

There are three ways we can go about dealing with responsive <img>s : 1) a new format 2) a new syntax 3) rely on existing hacks.

Foresight.js

Speaking of bandwidth media queries, this project by Adam D. Bradley looks promising:

Foresight.js gives webpages the ability to tell if the user's device is capable of viewing high-resolution images (such as the 3rd generation iPad) before the image is requested from the server. Additionally, it judges if the user's device currently has a fast enough network connection for high-resolution images. Depending on device display and network connectivity, foresight.js will request the appropriate image for the webpage.…

ShopTalk Episode 12

This week Dave and I are joined by Dave's co-workers and amigo's Trent Walton and Reagan Ray. We talk about cutting edge front end stuff, client services, topics for a graduate thesis, and more. Brought to you by LessMoney and Front End Design Conference, two web conferences running back to back in Florida this July.…

189 comments

The JavaScript “Ah ha!” Moment

If you feel like you have a decent understanding of JavaScript, what was your "Ah ha!" moment? Or are you still waiting for it?
18 comments

Minimum Paragraph Widths in Fluid Layouts

In fluid width environments, the text that wraps around floated elements can get awkwardly narrow and trap bits of text orphaned away from the rest of the paragraph. This article explains that problem in more details and offers a few solutions.

ShopTalk Episode 11

This week Dave and I were joined by Jina Bolton. We talked all kinds of shop, touching on SASS usage and the new upcoming website, semantics, learning, workflow, and more. This weeks show brought to you by LessMoney and Hover.…

Off Canvas

A super hot responsive web design pattern by Jason Weaver. Don't forget about the ol x-axis while designing for small screens. (via Paul Irish)…

The East Wing

I got to be on The East Wing podcast with Tim Smith.…

51 comments

Content Folding

In which we interdigitate content in a responsive layout rather than just "push it to the bottom."
142 comments

New Poll: Your Preferred CSS Preprocessor Syntax

All the popular ones are in there as options, as well as an "other" option in case you use something else (please share in comments). Or, vote "never tried," "don't like any of 'em," and "no preference" accordingly.

About HTML semantics and front-end architecture

Good read from Nicolas Gallagher. Among the gems:

Class names cannot be “unsemantic”. Whatever names are being used: they have meaning, they have purpose.

When Twitter Bootstrap first came out, I rewrote the compiled CSS to better reflect how I would author it by hand and to compare the file sizes. After minifying both files, the hand-crafted CSS was about 10% smaller than the pre-processor output. But when both files were also gzipped, the pre-processor output was about 5% smaller …

Shop Talk Episode 10

Dave and I talk shop with Doug Neiner, whom I consider one of the smartest people I know. Doug is on the jQuery team and works for a company based around jQuery, so the topic of JavaScript comes up a lot. But we also talk some CSS, APIs, and a variety of other stuff while answering listener questions. This episode brought to you by Hover (the best place to buy domains) and LessMoney (a conference to make your business better).…

Picturefill

Polyfill hero Scott Jehl has a new one for the theoretical <picture> element. The idea behind this new element is to solve the very real need to serve images of the appropriate size based on the browser window size. I'm all for it, but what happens if this exact syntax isn't the one that gets standardized?…

57 comments

How to Create Stunning Effects With 165 Media Queries or Less!

One bizarre trend emerging in this new RWD era is desktop-browsing web designers resizing their browsers to watch the break-points change the layout. The average user never sits at their desk repetitively shrinking and expanding the browser window like a mad scientist. Yup, we're all strange.

ShopTalk Episode 9

Dave and I were joined by Ethan Marcotte and I bet you can guess what we talked about. That's right ShopTalkers, it's a full episode of responsive web design goodness, from the basics to the newer challenges developers are facing in our brave new responsive world. Brought to you by Hover and LessMoney.…

LessMoney

I love Allan and Steve from LessEverything. I was just recently at my third trip to LessConf, which is a really fun web startup oriented conference. The fellas are at it again already, throwing a new conference called LessMoney. From them:

LessMoney Conference is a 2-day event where 50 people come together to learn & discuss how to become a more profitable, less stressful business owner or freelancer.

Learn from these two guys who have lots of experience with their …

51 comments

Thinking Async

Here's the rub: when you load JavaScript from a third party you should do it asynchronously. …

The Industry Podcast

I joined the gentlemen from the new blog and podcast The Industry for a chat about loads of different web industry related stuff.…

The Non-Breaking Space Show

Remember those three fellas from the last ShopTalk Show? Those guys are from the new(ish) podcast The Non-Breaking Space Show. Dave and I join them in this episode to talk about preprocessors, Git, and other stuff.…

7 comments

SXSW 2012

I'm headed down to Austin in a few days here for my 2nd SXSW. Hope to see some of you folks there. I'm trying not too have much of a plan, but here's a few things I'm doing:

There is a SurveyMonkey party and a crew of us from Wufoo / SurveyMonkey will be there hanging out. Free food and drinks. RSVP here and come.

My ShopTalk Show cohort Dave Rupert lives down there. We have no official plans but …

CSS Off Results

This year's CSS Off results are in. The Unmatched Style folks have listed out the top 25 entries and will be emailing everyone their results shortly. Congrats to all who entered. It was quite a load on all the judges to get it done and done fairly, but also fun and darn interesting. Three quick things that stood out to me while judging:

  • I think I only saw one or two that didn't use jQuery
  • Maybe only a handful that
24 comments

Designing for Decoder Glasses, Print and Web

Michael Buchmiller of BlueHornet walks us through the process of designing a poster for tinted decoder glasses, and then bringing the same idea with a similar interaction to the web with the AnythingZoomer.
80 comments

Places It’s Tempting To Use Display: None; But Don’t

Help yourself be better at accessibility by using better hiding techniques that don't use display: none;. This involves some tricks like using more clever class names, being fancier with how you deal with JavaScript library animations, or avoiding hiding all together.

Responsive Navigation Patterns

Brad Frost shows examples and covers the various techniques/pros/cons for handling navigation on small screens.…

Work for Treehouse

The main site sponsor around here, Treehouse, is hiring new teachers for creating new learning videos. It's not a job for just anybody. You need to know your stuff (PHP & WordPress, Front-End Design, Android, or Business & Marketing), be a good teacher, and be good on camera. You also need to live or be willing to move to Orlando, Florida. If that's you, it's a sweet gig.…

87 comments

How To Create a Notebook Design with CSS

This tutorial, a guest post by young developer Allen Lawson, will show you how to create a notebook themed website using only CSS.
39 comments

My Slides from InControl 2012: What We Don’t Know

I know it's weird to go through slides of a presentation outside of the context of a real talk (and pales in comparison to the experience of being there) but nonetheless, there may be bits of goodness you can extract from them.…

I can’t design in the browser

Sarah Parmenter with some good honest thoughts about the popular idea of designing in the browser.

I’ve tried, goodness knows I’ve tried, but my designs end up suffering, looking boxy, bland and uninspiring.

Not that I'm that great of a designer but I feel the same way. I have to start in Photoshop to get anything decent looking. I try to get out it as soon as possible, but once I'm into the HTML/CSS my brain is in a more …

ShopTalk Episode 6

This week Dave and I were joined by Zoey Gillenwater and we chat about print stylesheets, CSS formatting, icon fonts, spec mysteries, and much more.…

BarCamp Tour 2012

I'll be representin' Wufoo at a bunch of BarCamps again this year. Super fun. We need to figure out exactly what (U.S.) cities we are going to go to this year, so if you are organizing one, hit us up at the form on the site.…

one comment

ShopTalk Episode 5

Jeffrey Way, Dave and I talk shop about some newly released projects, -webkit-gate, and our weekly staple of Q&A.…