Positioning Playground - Online Absolute & Relative Offset
Drag a positioned box and see the top/right/bottom/left values change. Understand containing blocks. Visual.
UD5 Toolkit
Online test lab for the powerful :has() relational pseudo‑class. Write HTML & CSS, instantly see how child states can style their parent.
:has() is a relational pseudo‑class that represents an element if any of the relative selectors passed as argument match at least one element when anchored against this element. It lets you style a parent based on its children or descendants, e.g., div:has(> img).
:has() works by matching the parent if it contains a child that matches the inner selector. Example: .card:has(button:hover) { border-color: blue; }.
:has() is supported in all modern browsers including Chrome 105+, Edge 105+, Safari 15.4+, and Firefox 121+. As of 2024 it is safe to use in production for most projects.
:has() with class, attribute, or pseudo‑class selectors. For example, form:has(input:invalid) .error-message { display: block; }.
:has() is performant for most use cases, but overly broad selectors like *:has(*) can be expensive. Stick to reasonable, scoped selectors and test in DevTools.
.form-group:has(input:focus) { background: #f0f8ff; }. The container gets a highlight whenever the inner input is focused.
Drag a positioned box and see the top/right/bottom/left values change. Understand containing blocks. Visual.
Generate a sample sleep schedule for babies 0-24 months based on age-appropriate wake windows. Nap count and bedtime suggestions. Educational reference.
Type JavaScript expressions and see output like a real browser console. Supports console.log, error, warn. Use for quick testing without DevTools.
Display used/total/limit JS heap size using performance.memory. Take snapshots and see growth. Simple memory leak detection.
Visualize the probability distribution of dice rolls as a color‑coded heatmap. For any NdM combination. RPG strategist's dream.
Quickly find the final price after a percentage discount. Also works in reverse to find the original price. Handy for budget shoppers.
Type sender and recipient addresses and format them for printing on a standard envelope. No special software.
Connect to a WebSocket endpoint, send messages, and view the stream of received data. Perfect for debugging real‑time apps.
Calculate probability of getting a specific sum when rolling multiple dice. Visual bar chart. Useful for tabletop RPG players. Instant local computation.
Enter HSL values and get the exact RGB representation. Also shows hex. For fine‑tuning design tokens. Client‑side.
Randomly given base form, type past simple and past participle. Score tracking.
Compare insulation materials and thicknesses to achieve a target R-value. Understand U-factor. Educational home improvement tool. Local.
Play the Pig dice game: roll to accumulate points, but a 1 ends your turn. First to 100 wins. Simple hot‑seat local game.
Enter two date‑time values and get the exact years, months, days, hours, minutes difference. Word output also.
Enter bolt diameter and applied torque to estimate clamping force. Use standard friction factors.
Get a piece of either wise or hilariously useless advice. Instant life tips. Pure fun.
Flip a coin and track your full history. See percentage of heads/tails and longest streak. Pure RNG, no bias.
Rate symptoms severity daily and add notes. Visual pain map. Export for doctor visit. Private local storage.
Press any key combination and record the sequence. Export as JSON or human‑readable text. Perfect for documenting shortcuts.
Roll any number of dice thousands of times and see a live bar chart of the sum distribution. Great for game designers.
Enter your elevation and find the exact boiling point of water. Useful for high‑altitude cooking and tea brewing. Local math.
Visually configure scroll‑snap containers and items. Adjust alignment, stop behavior, and padding. Copy the clean CSS instantly.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Design a fully styled scrollbar with colors, width, radius, and hover effects. Supports both ::-webkit‑scrollbar and Firefox scrollbar‑width.
Create CSS clamp() values for fluid typography. Enter min and max font sizes and viewport widths. Modern responsive design.
Generate a unique, beautiful random gradient background with each click. Copy the CSS code. Endless inspiration.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Create CSS mask‑image effects with custom shapes, gradients, and SVGs. Visually see the mask applied to an image. Copy the CSS.
Paste your CSS and sort the properties of each rule alphabetically or by concentric groups. Keep your stylesheets consistent without a build step.