Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Resize handles with resize: both property

I'm using the CSS3 property:

resize: both;
overflow: none;

This puts a resize handle in the bottom right corner of the element.

My first question is: can I put other handles on the element using this CSS property? ie Can I put a handle in the right edge? I understand this wouldn't always work unless the element is absolutely positioned.

Second question is: Can I style the handles to be something more specific to my app?

I cannot use jQuery resizable; I tested it with what I am trying to do (Div within CKEditor) and it doesn't work. Perhaps an alternative plugin if no one has a solution to the above questions?

like image 817
Michael Bates Avatar asked Nov 04 '12 23:11

Michael Bates


1 Answers

Check out this post it is the same question: HTML5/CSS3 - Change the look of resize handles

However what it comes down to is that it is not possible to do it, however there is a workaround that is using a background image:

textarea {
  height: 300px;
  width: 300px;
  position: relative;
  background: #fff url(http://merchantmomphotoeditor.com/pixenate/docs/resize_handle2.gif) 100% 100% no-repeat;
}

see http://jsfiddle.net/q5kdr/

like image 152
John In't Hout Avatar answered Sep 16 '22 18:09

John In't Hout