Article Archives

46 comments

Responsive Menu Concepts

Tim Pietrusky shares a number of different techniques for handling menus on smaller screens when the large screen version, unaltered, is untenable on the small screen.

ShopTalk Episode #42

Sadly we had some issues recording with Matthew Smith again (our fault). So Dave and I regrouped and did another RAPIDFIRE to catch up. We talk about @extend, image replacement and Google, organizing CSS properties with CSSComb, learning Backbone.js, and lots more. Thanks a bunch to Environments for Humans and Mijingo for sponsoring.…

54 comments

Stairway Navigation (A jQuery Plugin?)

On a whim the other day I thought I'd build out an idea for navigation I had. It's nothing but a visual effect in which the hovered (or active) navigation item becomes the tallest "stair" and other items before and after it step down. It's simple, but it's not something you see very often. Probably for one major reason: you can't select "previous" elements in CSS.…

Ratchet

From the Twitter Bootstrap clan:

Prototype iPhone apps with simple HTML, CSS and JS components.

I wonder if they can make a business out projects like these.…

76 comments

Why Ems?

I've long sized text only in px. Even when it was patently uncool to do so - the days in which smart people cared about the fact that text set in px couldn't be resized in IE 6-8. I've switched over to using ems now. I haven't moved every single project over yet, but my mind has switched. Why? I finally found some compelling reasons that I now grok. …

44 comments

Off Canvas Menu with CSS :target

"Off Canvas" patterns are different ways to approach layout where content on the web isn't just laid out in a vertical column. For instance, navigation could be positioned hidden off the left edge of the "canvas" (visible browser window) and slid in on demand. Anthony Colangelo created jPanelMenu to do just that. Hakim El Hattab's Meny is fancier but similar in what it accomplishes.

They both use JavaScript. I thought it would be fun to try and recreate Anthony's jPanelMenu …

<picture> Demos

If you've ever thought "Meh, what is <picture> actually going to help with?" - here is a page of demos for you to see.…

Flexplorer

Play with the new syntax for flexbox with this one-page app by Bennett Feely.…

Inspector Web and the Mystery of the Shadow DOM

A video from JSConf EU 2012 in which Angelina Fabbro teaches us about the brand new shadow DOM, which is shipping now in Chrome Canary under a flag. Essentially, shadow DOM is a way for us to build modules (little sub-documents) inside a single element that are protected from the parent document. This will help semantics, make CSS easier, make more robust re-usable elements, and more. I think this will be big in years to come.…

39 comments

The Facebook Loading Animation in CSS

Fabrice Weinberg explains how to combine CSS3 gradients, multiple backgrounds, and animations to create the Facebook loading animation with a single HTML element. Fancy stuff, folks!
42 comments

New Poll: Version Control Usage

New poll up in the sidebar. The question is about version control and asking you to pick the situation that best describes you. I just think it would be interesting to get a sense of what CSS-Tricks readers usage levels are like when it comes to version control.

This will be agnostic in which specific version control technology you use.…

9 comments

Template and Notes from my Deseret Digital Workshop

Last week I was in Salt Lake City to do a workshop for Deseret Digital. Like my last workshop, we used the time to literally build a website from scratch. I think this live coding style is a decent way to do workshops because it is what real life web development is like. Nothing theoretical, all real working code. The following will be basic notes on what we covered and the template we built. While this certainly isn't as …

38 comments

Web Developer Economics: The Wrapup

We started this series to get a look at the financial ins and outs of a web developer these days. Now we can wrap it all up by looking at the numbers all together. …

41 comments

Dropdown Default Styling

There has always been big differences across how different browsers handle form styling. There probably always will be - because UI design choices aren't described in the specs. Browser makers perhaps view this as one of the ways they can differentiate the user experience a bit. Select (dropdown) menus are one that is particularly weird.…

Emmet

The next generation of Zen Coding. Essentially it gives you shortcuts you can type that expand into full HTML or CSS. Like nava*8 will expand into a <nav> tag with eight links inside it with empty hrefs. Or, try div.module*4p*2lorem and press tab. There are also a bunch of editor navigation shortcuts like "move to the next edit point."…

CSS-Tricks Store Now Open!

T-Shirts and Hoodies, now available anytime. Imagine one of these babies wrapped up with a bow on it under a tree. RIGHT?…

18 comments

Display Form <progress>

Imagine you have a form with 10 required fields on it. That's a bit larger than your average form on the internet and a good bit of work for a user. You might lose some users along the way, which is never a good thing. Perhaps to encourage finishing the form, you let them know how close to completion they are, and display motivational messages along the way.…

Hoverstat.es

New & interesting examples of movement in interaction design, curated by Chambers Judd.…

43 comments

Web Developer Economics: Hardware Costs

This will be the last part of this mini series about Web Developer Economics before we wrap it up and look at the numbers together. We already looked at:

Now we need to consider the hardware itself. I think this one is pretty simple: you need a computer.

I think you need either a laptop or a desktop. Maybe someday …

ShopTalk Episode 40

Dave and I talk with Laura Kalbag, a freelance designer from the UK with a fresh perspective on just about everything. We talk about process, selling responsive web design, software choices, and more.

Thanks very much to PeepCode and InControl for sponsoring this week.…

16 comments

CSS-Tricks Chronicle VII

In which the events of the day are transcribed upon bits and bytes and stored in the databii of the invisible clouded sea.

Reveal

You know those online slideshows where the text for new slides three dimensionally rotates in? Those are made with Reveal.js by Hakim El Hattab. Now there is a web app for creating them so it's even easier.…

Flexbox Will Help App-Like Layout

Quick video from simurai demonstrating how flexbox is well suited for web app (as opposed to web site) layouts. It gets extra compelling when combined with some simple media queries. …

The Big Web Show Episode #74

Jeffrey Zeldman (!) and I talk about some of my projects, some of his, and modern CSS concerns like baseline grids and retina images.…

75 comments

A Line In The Sand, A Story About Meaty Chili and Using Classes

In college I worked at a bar. The bar had a small kitchen and served typical American bar food: burgers, wings, and soup. We had two soups, one would rotate, one was always chili. We hand-made the chili every week. Sometimes we would sell out, sometimes we'd have chili leftover at the end of the week. …

17 comments

Updated :nth Tester

Just a quick post to note that I've updated the :nth Tester page to hopefully be a bit more useful than it was before. The purpose of the page is to learn in an interactive way how the selectors :nth-child, :nth-of-type, :nth-last-child, and :nth-last-of-type work. …

49 comments

David Walsh on Redesigning with Sass

A guest post by David Walsh who writes about his experience as a first time Sass user redesigning his own website with it.

Smashing Mag CSS Q&A 4

The fourth installment of my Q&A series on Smashing Magazine features questions about SVG fallbacks, vertical rhythm, retina media queries, and several more.…

SassCast

Dale Sande and I chat about Sass on his new podcast.…

62 comments

Compass Compiling and WordPress Themes

If you're a WordPress theme builder and a Sass/Compass user, first, yay you are awesome! Second, there is this little issue that will probably crop up for you regarding compile locations, so let's solve it now.…

Brackets

Eventually, we'll all be writing code in the browser. It just makes too much sense. What will get us there is projects like this which make the experience better instead of the same.…

WebPlatform.org

Aims to be the canonical non-vendor-specific documentation of web features. The major browser vendors are on board. It's in "alpha" so things are a little rough.

A noble goal, to be sure, but it feels strange to me. If Mozilla is on board, why aren't the MDN docs moved over into it? Is MDN going to shut down and point everything to this? If not (likely), which are we supposed to be contribute directly to and do new contributions get …

box-shadow vs filter: drop-shadow

Lennart Schoors shares that filter: drop-shadow(); isn't just box-shadow in disguise, it's way more useful. Essentially, it follows the rendered shape of any element (including pseudos). This makes shapes like these even more compelling than they already were, eh?…

Responsive Web Design Weekly

This email newsletter by Justin Avery is a good way to keep up with all the latest news, implementations, techniques, and what-have-you with the biggest web sea change since CSS.…

102 comments

Web Developer Economics: Monthly Service Costs

Dave Rupert once asked people on Twitter about all the web services they paid for and it looked like he received a lot of interesting replies. I thought I'd blog mine and get the ball rolling on sharing lists of these services. It's interesting to consider the apps that have managed to cross our magical barrier to our pocketbooks. Perhaps looking at them as a whole we can see a pattern or at least have better mental grasp on our …

12 comments

CSS-Tricks Chronicle VI

In forthwith I expound upon the events of the day and lay jolly hyperlinked words of great relevance.

Digging Into WordPress v3.4

Jeff Starr has updated our co-authored book to cover the new things in WordPress 3.4, update various content, and update the ALL AJAX theme that comes with it.

This is the 10th update to the book. Pretty cool that there are people that bought they book nearly 3 years ago now who are still getting free updates.…

23 comments

Custom User @mixins

Mixins are one of the most useful and compelling reasons to use a CSS preprocessor. CSS3 is a classic example but we already have those available in any project through Compass. In this post I share some examples of custom user-authored mixins that are useful to specific projects.

CanIUse on GitHub

CanIUse.com has the most comprehensive browser support charts for web features. Now we can help Alexis Deveria keep it that way by contributing on GitHub.…

41 comments

Live Weather Display Using CSS, jQuery and PHP

In which Darren Jamieson of Engage Web explains how he visually emulates the weather on the top header of engageweb.co.uk using all sorts of fun technology.
6 comments

Notes from my BD Conf Workshop

Notes from a workshop I recently did. More useful if you were actually at the workshop, but there might be some useful stuff in here even if you weren't.
25 comments

Receding Background Modal Boxes

In which we reverse engineer the really cool effect of Hakim El Hattab's Avgrund demo. Visually pleasing, but also an effective and clear design pattern for modal/dialog boxes.

ShopTalk Episode 36

A RAPIDFIRE episode of ShopTalk where Dave and I answer questions with no guest, no news, no drama. Well maybe some drama. Big thanks to ConvergeFL (coming up next week in Tallahassee, Florida!) and CSS Dev Conf for sponsoring. …

Mo’ Pixels Mo’ Problems

Repeat after Dave Rupert:

Use CSS and web type whenever possible. Use SVG and icon fonts whenever applicable. Picturefill raster graphics.…

We have a pretty good* newsletter.