images within a content block

Permalink 2 users found helpful
 
mdzoidberg replied on at Permalink Best Answer Reply
mdzoidberg
You can maybe use the jScale jQuery plugin;

http://plugins.jquery.com/project/jscale...

Then on your template page, page type or whatever you can add this;

jQuery(document).ready(function($){
  $('.ScaleImg').jScale({w:'60%'})
})


(The percentage value will scale the image based on it's original dimensions)

Then when you add images using the content block just give the image a class of "ScaleImg"

Cheers.