Posted By

marcio on 02/13/10


Tagged

css jquery ampersand typograpghy


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ReeceMarsland


Ampersand style


 / Published in: jQuery
 

URL: http://justinhileman.info/articles/more-jquery-typography

  1. $('h1,h2,h3,h4,h5,h6').each(
  2. function(){
  3. $(this).html($(this).html().replace(/&amp;/g,'<span class="amp">&amp;<\/span>'));
  4. }
  5. );

Report this snippet  

You need to login to post a comment.