Text Decoration CSS Generator - Online Underline & Strike
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
UD5 Toolkit
-webkit-text-stroke shorthand property, which accepts a width and a color value. The stroke is drawn centered on the character outline — half inside the glyph, half outside. This allows designers to create bold outlined typography effects directly in CSS without needing SVG or image-based solutions.
-webkit-text-stroke property is supported in all major modern browsers: Chrome (4+), Safari (3+), Edge (12+), Opera (15+), and Firefox (49+). While it still uses the -webkit- vendor prefix, it has become a de facto standard. For maximum compatibility with older browsers, consider providing a text-shadow fallback that simulates a similar outline effect.
text-shadow declarations. By placing shadows in 4 or 8 directions around the text (e.g., text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;), you create a solid outline effect. This method has broader legacy browser support but produces slightly less smooth results on curved glyphs compared to native text-stroke.
-webkit-text-stroke only accepts a solid color value — gradients are not supported directly. However, you can achieve gradient-like outline effects by combining text-stroke with multiple colored text-shadow layers, or by using SVG text elements with gradient stroke definitions. For the fill, you can use background-clip: text with a gradient background to create gradient-filled text with a solid stroke.
paint-order CSS property controls the order in which fill and stroke are painted. By default, fill is painted first, then stroke — meaning the stroke covers the outer half of the glyph edge. Setting paint-order: stroke fill reverses this, painting the stroke behind the fill. This preserves the original glyph shape and is especially useful when using thick strokes (3px or more), preventing the stroke from encroaching on the text interior and keeping it legible.
will-change sparingly on animated text elements. For heavy animation use cases, combining text-stroke with text-shadow animations may offer smoother results across devices.
em or rem for stroke-width so it scales proportionally with font-size changes. You can also use CSS clamp() to set bounds: e.g., -webkit-text-stroke: clamp(1px, 0.15em, 4px) #333;. Media queries allow you to adjust stroke thickness for mobile vs desktop, ensuring the outline remains visible without overwhelming smaller text on narrow screens.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Create vertically oriented text layouts with `writing‑mode`. See the effect and copy the complete CSS. For vertical languages.
Paste plain text and turn it into a nested outline using indent levels or Markdown headings. Great for planning.
Build a complete font‑stack for your website. Choose a primary font and get the best fallback options for different OS. Copy the CSS.
Create glowing, neon‑style text effects with multiple text‑shadows. Adjust colors and intensity. Copy the CSS.
Style the first letter of a paragraph as a large decorative drop cap. Choose font, color, and size. Get the CSS & HTML.
Visually name grid areas in a table and generate grid‑template‑areas CSS. Perfect for complex layouts. Drag‑free.
Create seamless CSS background patterns like stripes, polka dots, checkerboard. Adjust size and colors. Copy the tiny CSS.
Design a realistic neon sign text with multiple layers of glow. Copy the CSS and HTML. Perfect for headers.
Create a rainbow gradient text animation using pure CSS. Customize speed and colors. Copy the code for your website.
Design a custom focus indicator with outline, offset, and box‑shadow. Preview on interactive elements. Copy the CSS.
Select emojis and arrange them into a seamless tiling background. Copy the CSS data‑URI or download as image.
Create a customizable scrolling marquee banner. Copy the HTML and CSS. For retro web projects or fun.
Use named grid lines instead of column numbers. See how they simplify placement. Visual, interactive learning.
Paste your full CSS and HTML; automatically identify and extract the styles needed for the visible part. Reduce render‑blocking resources.
New CSS text‑spacing property for fine control over punctuation spacing. See the effect live. For advanced typography.
Style a drop cap using the initial‑letter property. Set size and sink. Modern alternative to pseudo‑element hacks.
Style a drop cap using the initial‑letter property. Set size and sink. Modern alternative to pseudo‑element hacks.
Create a 5‑star rating widget using only HTML and CSS. Customize colors and size. Copy the clean code.
Apply the drop‑shadow() filter and compare it with box‑shadow. See how it follows the contour of transparent images. Copy code.
Create printable sight word flashcards from Dolch or Fry lists by grade level. Choose font size and card layout. Local only.
Beautify and format your CSS stylesheets instantly. Organize, minify, or prettify CSS code for better readability. Processed securely on client-side.
Visually create the glassmorphism effect: background blur, transparency, and border. Copy the complete CSS. Modern UI design.
Create a repeating text pattern from a short string for watermarking documents or images. Download SVG pattern.
Toggle scroll‑behavior: smooth and click anchor links to see the scrolling animation. Implement modern UX.
Encode a hidden message using zero‑width characters. The message looks like normal text. Decode with the same tool.
Compare break‑all, keep‑all, and overflow‑wrap: anywhere/break‑word. Paste long words and see how they wrap.
Click a letter and watch an animated stroke order for print or cursive. Good for kids learning to write.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Paste a Kanji and watch it drawn stroke by stroke with numbered sequence. Excellent for learners. Static data set.