Reduced Test Cases

If you are having trouble with something while building a webpage, the most helpful thing you can possibly do is start building a reduced test case. “Trouble” could be anything: the CSS isn’t doing what you think it should, the …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Cufon 101

1. Include the JavaScript for Cufón and the Cufón font

<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/TitilliumMaps.font.js"></script>

2. HTML

Normal tags

<h1>Business Solutions</h1>
<h2>Business Insurance</h2>

3. Tell Cufón to replace the fonts for the specified CSS selectors

<script type="text/javascript">
    Cufon.replace('h1, h2', 
Avatar of Chris Coyier
Chris Coyier on

Organic Tabs

Have you ever seen a tabbed content area in a sidebar that was a little “jerky”? The jerkiness can be caused by a bunch of things, like the content in the tabbed areas are of different heights, or maybe the …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Cross Domain GET Forwarding

When you do an AJAX request on a website, the URL you request from needs to reside on the same domain as where the request was made from. This is a security restriction imposed by the browser. There is a …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

May is Maintenance Month

There are over 600 blog posts on this site over the course of nearly 3 years. Some of them are… better than others. I think it is the responsible thing to do is try to keep that content current and …

Avatar of Chris Coyier
Chris Coyier on

Fallback for CDN hosted jQuery

Several big companies offer copies of jQuery hosted on their CDN’s (Content Delivery Network). Most notoriously Google, but also Microsoft and jQuery themselves. A lot of people swear by this since it saves bandwidth, downloads faster, and perhaps even stays …

Avatar of Chris Coyier
Chris Coyier on