skippt Posted January 11, 2014 Share Posted January 11, 2014 Hi, I'm currently trying to build a script that will allow two divs to sit next to each other and move when resized. The code I have so far is here: http://jsfiddle.net/7BSrL/6/ I would like it the second div to move to the right when the first div is resized and if the div gets too large for the container, the second div should move below the first div. Could anyone teach me how to do this please? Quote Link to comment https://forums.phpfreaks.com/topic/285296-jquery-resizeable/ Share on other sites More sharing options...
Psycho Posted January 12, 2014 Share Posted January 12, 2014 You're putting too much constraints on the style properties. Try this: #resizable { width:75px; height: 75px; padding: 0em; position:relative; float:left; border: 1px solid #ccc; } #resizable2 { width:75px; height: 75px; padding: 0em; position:relative; float:left; border: 1px solid #ccc; } .ui-resizable-helper { border: 2px dotted #00F; } #containment-wrapper { width: 95%; height:150px; white-space:nowrap; border:2px solid #ccc; overflow:hidden; } Quote Link to comment https://forums.phpfreaks.com/topic/285296-jquery-resizeable/#findComment-1464887 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.