Skip to content
Advertisement

Jquery .resizable function – resize icon not displaying properly

New to coding and doing an interview challenge.

They’ve asked for a dashboard made from JQuery (which I’ve never used before). Lots of help from W3schools and here in stack has me accomplished 100% of the functionality I need (even if the design could be improved: functionality first polish later!)

One of the bonus is to have some UI /UX functionality, so I’ve made the divs dragable, and I added the snip below from https://jqueryui.com/resizable/ to make the divs resizable.

JavaScript

But when it runs, the little resize icon seems to do something different from the example on the page above.

Are there any ideas how I can fix it back into the resize icon, the way it is supposed to look?

JavaScript
JavaScript
JavaScript

enter image description here

Advertisement

Answer

You simply did not use the jQuery-ui CSS file…

JavaScript

And you have a way too “wide” rule on div. So specific to the rezise handles, it needed an exception using the :not() selector.

JavaScript

JavaScript
JavaScript
JavaScript
Advertisement