Check out this example here
I am able to resize the div using jQuery, but I don't want the #spacer to have a fixed width at first because the content of the could vary in size.
Even if I remove:
width:100px;
and try setting it to a percentage or auto, when I resize the #container div, it also resizes the #spacer div.
Any idea on how to prevent this from happening?
I need the #spacer div to remain fixed according to the size of its contents and not adjust when resizing the #container div.