Dev Helpers

CSS / Interaction states

Change cursor on a resizable handle

Dev Helpers · November 24, 2025

A resize cursor tells a pointer user which direction a handle moves. The drag behaviour and keyboard equivalent still need to be implemented by the control.

Worked example

<style>
  .demo {
    cursor: ew-resize;
  }
</style>
<span class="demo">Resize handle</span>

Implementation notes

The cursor does not add keyboard events or touch gestures. Provide a meaningful hit area and an alternative way to adjust the same dimension.

Try it yourself

Approach the handle from either side and check the cursor over its entire hit area.

Open the CSS example →

Editorial date November 24, 2025 · Published December 6, 2026

Related articles

Fluid width with a maximum

A fluid container needs a small-screen width and a large-screen maximum. Outer gutters should remain visible at both extremes.

Square aspect ratio

A square ratio reserves equal sides even before media loads. Fit rules decide whether rectangular content is cropped or letterboxed.