HTML5 Mobile
Written by: Max Firtman
Featured Refcardz: Top Refcardz:
  1. Git
  2. Data Mining
  3. Spring Data
  4. Subversion
  5. HTML5 Mobile
  1. HTML5 Mobile
  2. HTML5
  3. Subversion
  4. Git
  5. Java

Link Details

Link 777933 thumbnail
User 232819 avatar

By nadavs
via cloudinary.com
Published: Apr 17 2012 / 23:52

The main approach today is adding a rounded-corner mask to the image on the client’s side, using either CSS or image mask overlays. There's another approach - add rounded corners to the original image and serve it to the browser in its final form. This approach offers some very nice benefits. While the client-side masking approach usually works, it certainly has its drawbacks: Supporting older browsers is non-trivial and the HTML can get cluttered. In addition, this method fails when generating PDFs or sending emails. Email clients today simply do not support advanced CSS techniques. Client-side masking is non-trivial for mobile applications where it’s more complex to transform the images or add masks on the device itself.
  • 13
  • 0
  • 1310
  • 699

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.