Articles & Notes

.live() v. .delegate() in jQuery 1.4.2

After expe­ri­enc­ing sub­stan­tial con­fu­sion regard­ing dif­fer­ences in jQuery’s live and delegate meth­ods, I put together a exhaus­tive test page to eval­u­ate each. The take­away: use delegate.

CSS Reset - Refreshed

It is help­ful when design­ing a web page for cross-​​browser con­sis­tency, to cre­ate a com­mon foun­da­tion. Eric Meyer’s CSS Reset is a valu­able tool to can­cel out con­flict­ing aspects of default browser stylesheets. KING­desk Web Design has used this file on every web­site we have devel­oped in the past 2 years.

As we have begun imple­ment­ing new HTML5 ele­ments into KINGdesk’s designs, a new bit of code is required. HTML4′s defined behav­ior for han­dling of unknown ele­ments requires inline treat­ment. This requires use of HTML5 block level ele­ments (such as <section>, <article>, <header>, and <footer>) be explic­itly defined as such for proper han­dling… for a com­mon foun­da­tion. Addi­tion­ally, many new ele­ments (both inline and block level) should rea­son­ably be included in the ini­tial CSS Reset style clear­ing rule. As such, I am now using the fol­low­ing mod­i­fied version:


/* v1.2 | 20100218 */

/* Eric Meyer's original CSS Reset is found at
   http://meyerweb.com/eric/tools/css/reset/ */

/* This version's permalink is
   http://kingdesk.com/articles/css-reset/ */


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
section, article, aside, hgroup, header,
footer, nav, dialog, figure, menu,
video, audio, mark, time, canvas, details {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	}
section, article, aside, hgroup, header,
footer, nav, dialog, figure, figcaption {
	display: block;
	}
body {
	line-height: 1;
	}
ol, ul {
	list-style: none;
	}
blockquote, q {
	quotes: none;
	}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
	}
:focus { /* remember to define focus styles! */
	outline: 0;
	}
ins { /* remember to highlight inserts somehow! */
	text-decoration: none;
	}
del {
	text-decoration: line-through;
	}
table { /* markup tables with 'cellspacing="0"' */
	border-collapse: collapse;
	border-spacing: 0;
	}

Pur­pose­fully excluded from the above CSS reset are the fol­low­ing HTML5 elements:

  • embed
  • progress
  • meter
  • ruby
  • rt
  • rp
  • com­mand
  • datal­ist
  • key­gen
  • out­put

From the PortfolioJade & Jonny's Engagement Video

KING­desk was pro­vided raw video and pic­tures, and asked to assem­ble an engage­ment video for Jade and Jonny. This is the product:

Down­load Video: High – 960×540 | Low – 480×272

Projectwp-AuthorComment

This Word­Press plu­gin will eas­ily allow you to uniquely style com­ments made by a post author. By default, author com­ments will be given a light yel­low back­ground, but this is entirely cus­tomiz­able at the plugin’s options page. Cus­tom styling requires only a basic under­stand­ing of CSS.

Go to the wp-AuthorComment project page...

Critical Update to Typography Projects

Crit­i­cal Updates to PHP Typog­ra­phy and wp-​​Typography projects have been released. They are now at ver­sions 1.0 beta 6.

Typography Projects Updated to Beta 5

The PHP Typog­ra­phy and wp-​​Typography projects have been updated to ver­sion 1.0 beta 5.

Typography Updates

PHP Typog­ra­phy and wp-​​Typography projects have been updated to ver­sions 1.0 beta 4.

Projectwp-Typography

KING­desk Web Design is proud to make avail­able wp-​​Typography, a merger and expan­sion of the wp-​​Typogrify and wp-​​Hyphenate Word­Press plu­g­ins and Smar­ty­Pants func­tion­al­ity. It is now a one-​​stop-​​shop for improved web typog­ra­phy in Word­Press. It fea­tures the fol­low­ing capa­bil­i­ties (includ­ing gran­u­lar control):

  • Hyphen­ation
  • Spac­ing con­trol, includ­ing: glu­ing val­ues to units, widow pro­tec­tion, and forced inter­nal wrap­ping of long URLs & email addresses.
  • Intel­li­gent char­ac­ter replace­ment, includ­ing smart han­dling of: quote marks ( “foo” ), dashes ( foo – bar ), ellipses ( … ), trade­marks ( ™ ), math sym­bols ( 1024×768 ), frac­tions ( 1223 ), and ordi­nal suf­fixes ( 3rd )
  • CSS hooks for styling: amper­sands (class “amp”), acronyms (class “caps”), num­bers (class “num­bers”), ini­tial sin­gle quotes (class “quo”), and ini­tial dou­ble quotes & guillemets (class “dquo”).

Go to the wp-Typography project page...

ProjectPHP Typography 1.21

PHP Typog­ra­phy is a PHP based solu­tion to greatly improve web typog­ra­phy. It fea­tures the fol­low­ing capa­bil­i­ties (includ­ing gran­u­lar control):

  • Hyphen­ation
  • Spac­ing con­trol, includ­ing: glu­ing val­ues to units, widow pro­tec­tion, and forced inter­nal wrap­ping of long URLs & email addresses.
  • Intel­li­gent char­ac­ter replace­ment, includ­ing smart han­dling of: quote marks ( “foo” ), dashes ( foo – bar ), ellipses ( … ), trade­marks ( ™ ), math sym­bols ( 1024×768 ), frac­tions ( 1223 ), and ordi­nal suf­fixes ( 3rd )
  • CSS hooks for styling: amper­sands (class “amp”), acronyms (class “caps”), num­bers (class “num­bers”), ini­tial sin­gle quotes (class “quo”), and ini­tial dou­ble quotes & guillemets (class “dquo”).

Go to the PHP Typography 1.21 project page...

How to Start a Podcast

This week on Web in Focus, we walk you step-​​by-​​step through how-​​to tech­ni­cally start a pod­cast. We even list all the equip­ment we use! Last week, we reviewed the more basic issue of why you should start a pod­cast.