Forum How do I...?

Any way to dynamically re-size images?

Ben
Is there any way to dynamically resize images as they are brought in? I haven't figured out how to do this yet.
I have <image src="whatever.jpg:/> bringing in the image okay, but using any width or style attributes only change the block size, not the actual graphic. Which, I suppose, is expected... but is there a way to change the graphic size??
Thanks
Ben
mikeday
Images can be resized by applying the width and height properties to them. If you find that these properties are resizing the block containing the image but not the image itself, ensure that the content of the block is only the image:

content: attr(src, url);

and no other text:

content: attr(src, url) "more text";

as this will cause the creation of a block around the image and the text which will then be resized, which is not what you want.