<div class="intro">
<p>This example shows the simple use case where we make an HTML element resizable.</p>
</div>
<div class="example">
{{>simple-resize-source}}
</div>
<h3>Setting up the Node</h3>
<p>First we need to create an HTML element to make resizable.</p>
```
{{>simple-resize-source-html}}
```
<p>Next, we give that element some CSS to make it visible.</p>
```
{{>simple-resize-source-css}}
```
<h3>Setting up the YUI Instance</h3>
<p>We need to create our YUI instance and tell it to load the <code>resize</code> module; for this simple use case, we could also use the <code>base-resize</code> submodule.</p>
```
YUI().use('resize');
```
<h3>Making the Node Resizable</h3>
<p>Now that we have a YUI instance with the <code>resize</code> module, we need to instantiate the <code>Resize</code> instance on this Node.</p>
```
{{>simple-resize-source-js}}
```
<p>Upon instantiation, the element's drag handles will appear and the element is resizable via drag-and-drop.</p>