/ Published in: jQuery

You can't add rounded corners on images with css, but this is a fix.
Markup:
CSS:
.rounded {border-radius: 8px;}
Markup:
CSS:
.rounded {border-radius: 8px;}
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery(document).ready(function () { $('.fx-img').each(function(){ var me = $(this); var img = $('img',me); me.css('background', 'url('+img.attr('src')+') no-repeat'); me.css('display', 'block'); if(img.height() && img.width()) { me.height(img.height()); me.width(img.width()); } img.hide(); }); });
Comments
