Poll Results: Where Do You Work From?

Nearly a third of CSS-Tricks readers work from home! Isn’t that crazy? Well I was surprised, anyway. I know working from home is becoming more and more prevalent at companies. I bet a bunch of you are the freelancer types …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Mobile WebKit Overflow Scrolling

Direct Link

Two of the CSS properties most lamented by mobile website developers is fixed positioning and scrolling overflow. These are absent for a reason. Poorly implemented, they might single-handedly render a website unusable on a small screen. (Imagine a giant fixed …

Avatar of Chris Coyier
Shared by Chris Coyier on (Updated on )

Pseudo Spriting

CSS sprites are almost always the way to go when it comes to applying background images with CSS efficiently. One hurdle you may come across is when you want to apply an image that's a part of a sprite to an element with an unknown height and width. We can hurdle that hurdle with CSS pseudo elements.
Avatar of Chris Coyier
Chris Coyier on (Updated on )

One Page Apps I Actually Use

There is a zillion one-page apps focused on making some little aspect of front end development easier. I think they are great. They exemplify the wonderful culture of sharing and ingenuity that our industry is known for. Each of us …

Avatar of Chris Coyier
Chris Coyier on

Techniques for Context Specific Images

One of the shortfalls of using CSS media queries as the only ingredient of a mobile solution is that the same content gets served to both desktop browsers and mobile devices (which theoretically are slower and have less network speed).…

Avatar of Chris Coyier
Chris Coyier on

Learning Canvas: Making a Snake Game

In this tutorial we'll learn the basics of the canvas element. How to draw to it, create loops which redraw it allowing animation, and in the end, wind up with a basic playable "Snake" game.
Avatar of Chris Coyier
Chris Coyier on (Updated on )

Sprite Cow

Direct Link

Making a really good CSS sprite image usually isn’t trivial work. There are all kinds of tools to help with it. My favorite of them has been SpriteMe. I describe my typical workflow for using that here. Sprite …

Avatar of Chris Coyier
Shared by Chris Coyier on

Toggle Text

Let’s say you have a link to show more options which expands a list of options. It’s says “more options”. It’s easy to toggle those options with .toggle() or .slideToggle(), but the text remains the same. To toggle the …

Avatar of Chris Coyier
Chris Coyier on (Updated on )