Expand Images to parent DIV with jQuery and CSS

Working on a WordPress project where client demands all images within a post should extend and touch window borders, actually full size images. The wrapper has margin of 20px on both sides and its not possible to remove the margin otherwise, all other elements will required 20px margin.

I got this working with following JS code:

In case you have better code for this and in CSS, please share.

Leave a Comment

Your email address will not be published.*

*