View Full Version : jQuery - possible to make div resizable horizontally only?
10-09-2009, 05:03 PM
I'm using jQuery and I'd like to make divs in my page resizeable horizontally only, such that, when resized, the content in the div will automatically expand / contract to the necessary height.
Is that possible? I've been searching google but can't seem to find any demos on it.
10-09-2009, 08:52 PM
Forgive me for asking, but have you tried the CSS attribute "min-height"? Or are you talking about a user using the drag/resize option to manually resize a container?
10-09-2009, 09:55 PM
Yeah referring to the resize option on a container. Not a CSS solution.
10-09-2009, 11:31 PM
Well if you use the UI's "resizable" widget then you can set the minimum and maximum width and height and I imagine if you set min and max to the same value it would lock that axis.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.