Skip to main content

Chris Coyier

Founder, writer, designer, spam-deleter, email personality

Snippet

Display Post Divider In Between Posts

Right before the closing of the The Loop, insert this code:

<?php
if (($wp_query->current_post + 1) < ($wp_query->post_count)) {
   echo '<div class="post-item-divider">Post Divider</div>';
}
?>

This will create a <div> you can style as a post divider. The cool part being, it only gets inserted between two posts, skipping the last one. Thanks to Craig Maclean.… Read article

Article

New Poll: Multiple JavaScript Libraries

Have you ever tried to debug a site where a beginner web designer has loaded the page with scripts? There's a couple copies of jQuery in various versions, maybe a little Prototype or MooTools thrown in. We can laugh a bit, but many of us went through that stage where we just didn't really understand things well enough to know there was any problem with that. And is there? Aside from the bandwidth concerns, most libraries have steps you can … Read article

Link

FireQuery

Article

Intentional Difficulty

Here's some food for thought.

When designing something that you are reasonably certain the user is willing (or forced) to invest time in learning to use proficiently, is it beneficial to intentionally make some tasks just slightly more difficult than they could be?

Not incredibly hard, not convoluted, not outright counter-intuitive. But perhaps making some information a little more buried, or placing an action in a slightly strange place. If the user is really looking, they'll be able to find … Read article

Article

Poll Results: Action Verb Clarity

The latest poll was all about picking the best sentence for a user to perform a specific action on a website. The choices are listed below, sorted from most popular to least:

  • 39% - Select a user and then click the Update button.
  • 37% - Select a user and then click Update.
  • 8% - Select a user and Update.
  • 7% - Select a user and then press the Update button.
  • 5% - Select a user and then press Update.
  • 3%
Read article
Article

Browser Jumping

If you asked me right now, Hey Chris, what's your favorite browser? I wouldn't know what to tell you! I've been a Firefox user primarily over the past few years, but over the last several months my allegiance is no longer to any one browser. I'm a browser jumper. I feel like it's only fairly recently that the tools are finally there that I can do that without too much trouble. … Read article

Link

Blogging is Still Awesome & Yours Can Kick-Ass

icon-link icon-logo-star icon-search icon-star