Archive for May, 2013

  • Generating thumbnails on the fly with WordPress

    Generating thumbnails on the fly with WordPress

    One advantage of Drupal’s resizing images over WordPress – WordPress’s resized images are generated at upload time only, whereas Drupal’s will be generated automatically on page load if the thumbnail doesn’t already exist. You could put this function into your WP template – given an image url $image_url, it checks for the address of its […]

    Read more »
  • Target Safari and Chrome with specific css

    Target Safari and Chrome with specific css

    Sometimes you need to apply CSS rules to deal with Webkit browsers such as Safari and Chrome. One example: sometimes non-standard fonts rendered using @font-face or an embed service such as Typekit or Google webfonts display thinner than on other browsers. You can deal with this using a media query: @media screen and (-webkit-min-device-pixel-ratio:0) { […]

    Read more »