text‑spacing CSS Demo - Online trim‑start & space‑first
New CSS text‑spacing property for fine control over punctuation spacing. See the effect live. For advanced typography.
UD5 Toolkit
Interactive demo of hyphens: auto, manual, and none — live preview with adjustable container width.
lang attribute).­) exist. No soft hyphen = no break.hyphens CSS property controls how words are hyphenated when text wraps across multiple lines. It accepts three values: auto (browser automatically inserts hyphens based on language rules), manual (hyphenation only occurs at explicitly defined soft hyphen characters ­), and none (no hyphenation at all, words may overflow). It's particularly useful for justified text or narrow columns where long words need to be broken gracefully.
auto lets the browser decide where to insert hyphens using language-specific hyphenation dictionaries. It requires the lang attribute to be set correctly on the element. The browser finds optimal break points within words automatically.manual only breaks words where you've explicitly placed soft hyphen characters (­ or Unicode \u00AD). If no soft hyphens exist in a word, it won't break at all — even if it overflows. This gives you precise control but requires manual markup.
hyphens: auto when you have narrow text columns (like sidebars, cards, or mobile layouts), justified text alignment, or content with long words that would otherwise create awkward gaps or overflow. It's especially valuable for multi-language sites where you can set the lang attribute dynamically. Common use cases include newspaper-style layouts, multilingual dashboards, and responsive designs where container widths vary significantly across devices.
lang attribute is crucial for hyphens: auto because hyphenation rules vary significantly between languages. For example, English hyphenation follows different patterns than German or French. Without a proper lang attribute (or with lang=""), the browser may use a default or fallback hyphenation dictionary, which might produce incorrect or suboptimal breaks. Always set lang on the hyphenated element or its ancestor. Our tester lets you switch languages to see how hyphenation behavior changes.
­ in HTML or \u00AD in Unicode) is an invisible character that marks a potential break point within a word. When hyphens: manual is set, the browser breaks the word only at these soft hyphen positions, displaying a visible hyphen at the break. If the word doesn't need to break (fits on one line), the soft hyphen remains invisible. You can insert them manually in HTML source code, via JavaScript using \u00AD, or through CMS plugins. Our tool includes an "Insert ­" button to add them at the cursor position in the text area.
hyphens property is supported in all modern browsers including Chrome (88+), Firefox (43+), Safari (5.1+ with -webkit-hyphens), and Edge (12+). However, hyphens: auto behavior varies: Chrome requires the lang attribute and may not hyphenate English as aggressively as Firefox. Safari has good support via the -webkit-hyphens prefix. For production, always include vendor prefixes: -webkit-hyphens, -ms-hyphens, and the standard hyphens. Mobile browsers generally have excellent support. Always test across your target browsers.
hyphens works independently but can interact with other text-breaking properties. word-break: break-all forcibly breaks words at any character (without hyphens), which may override hyphens. overflow-wrap: break-word (or word-wrap: break-word) breaks words only when they would overflow, also without inserting hyphens. For clean hyphenation, keep word-break: normal and overflow-wrap: normal (the defaults), and rely solely on the hyphens property. This ensures hyphens appear only at linguistically correct positions.
New CSS text‑spacing property for fine control over punctuation spacing. See the effect live. For advanced typography.
A textarea that expands in height as you type. See the implementation and copy the code. No library needed.
Resize the container and see the difference between repeat(auto‑fill, …) and auto‑fit. Understand responsive grid behavior.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Design a square foot garden by dragging vegetables into a grid. See companion planting warnings and spacing tips. Print plan.
Visually configure scroll‑snap containers and items. Adjust alignment, stop behavior, and padding. Copy the clean CSS instantly.
Convert hex, RGB, or HSL into the modern OKLCH color space. See the preview and copy CSS oklch() value. Local.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Adjust opacity visually with a slider and see the different CSS representations (opacity property vs RGBA/HSLA). Copy best option.
Pick two images or colors and apply all 16 CSS mix‑blend‑mode values live. See and copy the right CSS for your design.
Design a fully styled scrollbar with colors, width, radius, and hover effects. Supports both ::-webkit‑scrollbar and Firefox scrollbar‑width.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create CSS clamp() values for fluid typography. Enter min and max font sizes and viewport widths. Modern responsive design.
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.
Paste HTML/CSS snippets or enter properties to test how z‑index and stacking contexts interact. Real‑time example.
Adjust margin, border, padding, and content sizes interactively and see the rendered box model. Get the exact CSS. Teach or learn layout.
Create a glowing or rotating border animation around an element. Copy the CSS keyframes. Pure CSS magic.
Design a pure CSS tooltip with custom text, position (top/bottom/left/right), and arrow. Copy the clean code.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Pick an emoji and get the exact CSS content property value with escaped Unicode. For inserting emojis via CSS.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Recreate the target CSS linear gradient by adjusting stops and colors. A unique game for front‑end developers to master gradients.
Create text with a gradient fill using CSS background-clip. Configure colors and direction. Copy the code. Works in modern browsers.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Visually experiment with Flexbox container and item properties. See the layout update in real time and copy the CSS. Learn by doing, fully interactive.
Minify JavaScript and CSS code to reduce file size for production. Remove whitespace and comments instantly. Run locally, your code stays private.