How to dynamically resize an image using CSS

By , 2011-09-20 23:03
 <style> 
img.g-resize { 
        width: 100%;
        height: auto;
}
</style>

Where g-resize is the class assigned to the img you want to have dynamically resized.

Thanks to http://michelf.com/weblog/2005/liquid-image/

Leave a Reply

 

Custom theme by me. Based on Panorama by Themocracy