Block Resizer

This is a small script for resizing textareas and other block elements (div, table, p, blockquote, etc.) vertically by dragging. It can use pre-made resizing handle or add one automatically at the bottom of the element when run. I know, Safari 3.0 has native support for resizing textareas and there are several plugins for Firefox that can add that. However most users still don’t have that (quite useful) option.

Demo (Opens in a popup window)

Download Block Resizer 1.0


Just link the js file in the header and add the style for the resizing handle if using the automatically created one:

<script type=”text/javascript” src=”block-resizer.js”></script>
<style type=”text/css”>
#auto-handle {font-size:6px;height:6px;cursor:s-resize;border-top:3px dashed #aaa;}


Activates with onmouseover="Resizer.Init(," on the handle element if using pre-made handles, or onclick="Resizer.Init(" on the element when auto-creating handles. See the source of the demo for some examples.

2 thoughts on “Block Resizer”

Leave a Reply

Your email address will not be published.