text‑emphasis CSS Playground - Online Decorative Marks
Apply text‑emphasis marks (filled dot, open circle, etc.) with color. Ideal for East Asian typography. Copy the style.
UD5 Toolkit
Test how Chinese, Japanese & Korean text wraps with different CSS word-break, line-break & overflow-wrap values.
这是一段中文文本,包含各种标点符号。「你好,世界!」这句话使用了中文引号。另外还有顿号、分号;以及冒号:等标点符号。通过调整line-break属性,可以观察标点符号在行首和行尾的不同表现。CJK文本换行测试:This is a mixed content example with English words and 中文汉字混合在一起。
line-break property. Chinese and Japanese typically lack spaces, while Korean uses spaces between words (similar to English), making word-break: keep-all particularly relevant for Korean content.
word-break: break-all forces the browser to break lines at any character—even inside non-CJK words like English terms or URLs. For CJK text, this is largely redundant since CJK characters already permit breaks between them. However, it significantly affects mixed-language content: long English words or URLs embedded in CJK paragraphs will be aggressively broken mid-word to prevent overflow. Use this when you need strict containment of content within narrow containers, but be aware it can make English text harder to read.
word-break: keep-all prevents line breaks within words and only allows breaks at spaces or other explicit separators. This is essential for Korean (which uses spaces between words) and also beneficial for Chinese/Japanese when you want to keep semantic units together. However, for Chinese and Japanese text without spaces, keep-all may cause text to overflow its container if no natural break points exist. Combine it with overflow-wrap: break-word as a safety net to handle overflow gracefully.
line-break property specifically controls how CJK punctuation and symbols behave at line boundaries. It accepts five values: auto (browser default), loose (more permissive—allows more punctuation at line start/end), normal (balanced rules), strict (restrictive—prevents certain punctuation from appearing at line start), and anywhere (allows breaks around any punctuation). For example, in Japanese typography, it's traditionally considered poor form to start a line with a small kana or certain punctuation marks—line-break: strict enforces these rules.
line-break: anywhere or overflow-wrap: anywhere arrived later than in Blink-based browsers (Chrome, Edge). To ensure cross-browser compatibility, always test with multiple browsers and consider using word-break: break-all or overflow-wrap: break-word as a fallback for overflow prevention. As of 2024, Safari 15.4+ supports most modern line-breaking properties.
word-break: normal as the base to allow natural CJK wrapping. (2) Add overflow-wrap: break-word to handle long English words or URLs that might overflow narrow containers. (3) Consider hyphens: auto for Latin portions (with appropriate lang attribute). (4) Test at all breakpoints—what looks fine at 768px may overflow at 320px. (5) For Korean specifically, word-break: keep-all preserves word integrity while overflow-wrap: break-word provides overflow safety.
overflow-wrap: break-word is lazy—it only breaks a word if it would otherwise overflow the container. The browser first tries to wrap at natural break points, and only resorts to mid-word breaking as a last resort. word-break: break-all is aggressive—it allows breaking at any character regardless of overflow, which can create awkward mid-word breaks even when not strictly necessary. For most use cases, overflow-wrap: break-word provides a better reading experience while still preventing overflow.
line-break: strict may require slightly more computation as the browser evaluates each character against complex rule sets. For performance-critical applications: use line-break: auto (the default), avoid unnecessary nesting of elements with different line-breaking rules, and consider content-visibility: auto for off-screen content. In practice, line-breaking performance is rarely a bottleneck compared to layout, paint, or JavaScript execution.
Apply text‑emphasis marks (filled dot, open circle, etc.) with color. Ideal for East Asian typography. Copy the style.
Design a layout where nested grids share track sizes with their parent via subgrid. Copy the complete CSS.
Create a pure CSS scroll progress indicator using animation‑timeline: scroll(). No JavaScript. Copy the complete code.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
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.
Generate a random HTML/CSS card with different box model properties. Inspect and guess the size. For learners.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Experiment with CSS container queries. Resize a container and see the styles change according to its size, not the viewport. Learn the new spec.
Paste your CSS and sort the properties of each rule alphabetically or by concentric groups. Keep your stylesheets consistent without a build step.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Upload two images and apply CSS blend modes (multiply, screen, overlay, etc.). See the result and copy the filter CSS. Pure frontend.
Add print styles like removing backgrounds, adding page breaks, setting margins. See print preview instantly.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Create a glowing or rotating border animation around an element. Copy the CSS keyframes. Pure CSS magic.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Design a realistic neon sign text with multiple layers of glow. Copy the CSS and HTML. Perfect for headers.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Paste a Kanji and watch it drawn stroke by stroke with numbered sequence. Excellent for learners. Static data set.
Recreate the target CSS linear gradient by adjusting stops and colors. A unique game for front‑end developers to master gradients.
Browse and search all Font Awesome 6 icons with preview, class name, and unicode. Copy the HTML snippet. Perfect for web developers.
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.
Easily create asymmetric border radius values and preview the result. Copy the generated CSS instantly. All interactively and browser-based.