I want a div to expand to the right on click from its current width (400px) to a certain specified width. (The divs have photos as backgrounds so the end result width will be different in each case, but it will be about 1000px in most cases).
How can I do this with jquery/javascipt? Thanks
With a defined width:
Checking the width of the image (background):
See this fiddle: http://jsfiddle.net/4ZfsD/2/
CSS: