CSS Box Resize Generator
Generate CSS for the box resize property on textareas and divs with horizontal vertical or both values.
The CSS Box Resize Generator builds a ready-to-paste rule for the resize property. Resize controls whether users can change the size of an element (usually a textarea or a scrollable panel) by dragging a grip on the corner or edges. In most browsers, resize only has a visible effect when overflow is something other than visible; this tool can include overflow: auto; for you.
resize values
none— user cannot resize (common browser default for many elements).both— horizontal and vertical resize.horizontal/vertical— one axis only.block/inline— logical-axis variants in newer CSS; support varies by browser.
Typical pattern
.comment-box {
resize: vertical;
overflow: auto;
}
Accessibility and UX
Very small boxes are hard to grab. Optional minimum width and height in the tool help keep a usable hit target. Always test on mobile: native textarea behavior differs from styled div panels.
Frequently Asked Questions
I set resize but nothing appears in Chrome—why?
Check overflow. If it is visible (the default), many browsers hide the resize grip. Use overflow: auto or hidden as generated by this tool when the option is enabled.
Can I resize any element?
The property applies to elements with overflow other than visible. In practice, textarea and block containers with scrolling are the usual targets.
How do you sanitize the class name I type?
Non-alphanumeric characters (except hyphen and underscore) are replaced so the selector stays a simple class token. Empty input falls back to .resizable-box.
Is generated CSS sent to a server?
No. The snippet is built entirely in your browser from the options you choose.
Related tools
Your recent visits