Element Resize Detector - Online Monitor Size Changes
Select any element on the test page and monitor its size changes with ResizeObserver. See log of all entries.
UD5 Toolkit
resize Property Demo
Interactive tool to explore how resize works with overflow, writing-mode, and size constraints.
Drag the handle â at the bottomâright corner to resize this element.
The resize CSS property
controls which directions are allowed.
Try different settings below to see how overflow and writing-mode affect behavior.
resize property controls whether and how an element can be resized by the user. It applies to block-level elements and replaced elements (like <textarea>) whose overflow is not visible. Values include none, both, horizontal, vertical, block, and inline. The resize handle appears at the bottomâright corner by default in LTR layouts.
resize property only takes effect when overflow is not visible (the default). This is because resizing changes the element's dimensions, and the browser needs a defined overflow behavior to handle content that may no longer fit. Use overflow: auto, overflow: scroll, or overflow: hidden to enable resizing.
block restricts resizing to the block flow direction, and inline restricts it to the inline direction. These directions depend on the element's writing-mode. With default writing-mode: horizontal-tb, block â vertical and inline â horizontal. With writing-mode: vertical-rl, block becomes horizontal and inline becomes vertical. Try the presets above to see this in action!
resize: none to the textarea. This is one of the most common realâworld uses of the resize property â many developers disable textarea resizing to maintain a consistent layout. You can also use resize: vertical to allow height adjustments only, which is useful for comment boxes.
::-webkit-resizer pseudoâelement to style the handle. However, this is nonâstandard and not supported in Firefox. For crossâbrowser custom resize handles, consider using JavaScriptâbased solutions with custom UI elements instead of relying on the native resize property.
min-width, max-width, min-height, and max-height constraints during resize operations. The user cannot drag the element beyond these boundaries. This is useful for preventing an element from becoming too small to be usable or too large to fit the layout. Adjust the constraint values in the controls above to test this behavior.
resize handles are rendered by the browser and tend to be quite small â often too small for comfortable touch interaction on mobile devices. While the property technically works on mobile, the user experience can be frustrating. For mobileâfirst designs, consider providing alternative sizing controls (like buttons or sliders) or using a JavaScriptâbased custom resize implementation with larger touch targets.
block and inline values were introduced later and are supported in Chrome 118+, Firefox 119+, Safari 17+, and Edge 118+ (all released in late 2023). Older browsers will treat them as resize: none (no resizing). For broad compatibility, stick with both, horizontal, vertical, or none. Check caniuse.com for upâtoâdate support data.
Select any element on the test page and monitor its size changes with ResizeObserver. See log of all entries.
Drag to resize a box and see the Resize Observer callback fire. Get contentRect and borderBoxSize. Learn the API.
Explore the sizeâcontainer and inlineâsize CSS properties for container queries. Understand containment contexts. Visual guide.
Compare width/height with blockâsize/inlineâsize in different writing modes. Understand intrinsic sizing. Copy best practices.
Type a few words and see them rendered at every heading size (h1âh6) with your chosen font. Perfect for design systems.
See how scrollâpadding and scrollâmargin affect the position of elements when using anchor links or scrollâsnap. Visual.
Enter viewing distance to get the minimum readable print font size. Design posters and signs.
Toggle printâspecific styles like removing backgrounds, showing link URLs, and adding page breaks. Generate a complete print stylesheet instantly.
Add print styles like removing backgrounds, adding page breaks, setting margins. See print preview instantly.
Apply willâchange to any element and see its effect on compositing. Learn best practices for smooth animations.
Enter head circumference to get crown diameter and length. Perfect fit topâdown hats.
Enter item dimensions and find the smallest rectangular box that can fit them (simple packing heuristic). Helps reduce shipping costs. Local algorithm.
Analyze text for screen reader friendliness: detect vague link text, missing alt suggestions. Get a report. Local.
Enter length, width, thickness to approximate surfboard volume. Compare to your ideal volume based on weight.
Estimate your oneârep max (1RM) from weight and reps. Supports multiple formulas (Epley, Brzycki). Training percentages table.
Enter two tire sizes and see a sideâbyâside comparison of diameter, width, and speedometer error. Local math.
Knit a swatch, measure before and after felting, and let this tool calculate the shrink percentage. Plan your felted projects accurately.
Find out how large you can print based on image resolution in pixels. Understand DPI and megapixels.
Calculate the appropriate hide box dimensions based on your reptileâs length and girth. A snug hide reduces stress and promotes natural behavior.
Estimate board feet of spray foam needed for a cavity. Compare closedâcell and openâcell.
Enter megapixels and desired DPI to see the maximum print size without upscaling. Quick quality check.
Demonstrate how to add custom headers and POSTâlike functionality to EventSource using a polyfill. Code and example.
Enter baby's weight in lbs or kg to see suggested diaper sizes across major brands. General reference, no data collected.
Add appliances with running and starting watts to estimate needed generator capacity. Prevent overload.
See how Trusted Types prevents unsafe HTML assignment. Test against injected scripts. Modern security practice.
Enter image pixel dimensions and compute maximum print size at various DPI. With aspect ratio presets (4x6, 5x7, 8x10) and cropping preview. Local tool.
Generate a Lit Element web component skeleton with styles and properties. Copy and start coding immediately.
Estimate body fat percentage using neck, waist, hip (if female) measurements. Supports US Navy, Covert Bailey, and 3-site skinfold methods. No data sent to server.
Enter your hammock length to get the ideal fixed ridgeline length (83% of hammock length). Achieve a consistent, comfortable sag.
Calculate your one-rep max using Epley, Brzycki, Lombardi or O'Conner formulas. Predict maximum lifting capacity and plan progressive overload. 100% local processing.