Tools51

Hairline Rules & Text Dividers

CSS Section Divider & Horizontal Rule Generator.

Upgrade plain horizontal rules into fading gradient hairlines, centered login "OR" dividers, badge rules, and dashed or double editorial separators.

Interactive Studio Customizer

Signature
Presets
Editing state
LIVE INTERACTIVE STAGE
── OR CONTINUE WITH ──
Tip: Hover, click, focus, or type directly inside the live preview.
.
Zero JS dependencies · Accessible markup · Ready for production
Blog How to style fading CSS <hr> rules and centered "OR" login dividers Read the guide

Style fading gradient <hr> rules & centered "OR" login dividers

Transform plain horizontal rules into center-peak fading gradients, login `OR CONTINUE WITH` pill dividers, sparkle ornaments, and double or dashed editorial rules.

Fading CSS <hr> hairlines, centered text dividers, and ornament rules.
QUICK VIDEO TUTORIAL How to style fading CSS <hr> rules and centered "OR" login dividers Separate form sections and editorial chapters with refined hairlines and badge dividers. Watch the video

How to style fading CSS <hr> rules and centered "OR" login dividers

Key capabilities

Linear, Radial, Conic & layered CSS Mesh

Switch between four pure-CSS gradient engines without heavy raster background images.

How zero-image CSS mesh gradients work

CSS mesh presets stack multiple radial-gradient() color clouds at distinct percentage coordinates over a solid base color, producing silky organic aurora backdrops in under 300 bytes of CSS.

60 FPS global brand-accent recoloring

Preview every curated preset in your own brand HEX simultaneously before opening the customizer.

How global brand recoloring works

Click any swatch in the top Brand Accent bar—or enter any custom 6-digit HEX code—to recolor every preset card across the gallery at once. Solid fills, soft surface tints, borders, focus rings, and shadows adapt automatically.

You can also click Import .css to extract --primary, --accent, or border-radius values directly from an existing project stylesheet in memory without uploading files.

Semantic native HTML under the hood

Keep real keyboard-focusable <button>, <select>, and <input> elements intact for screen readers and forms.

Why native HTML controls matter

Replacing form elements with generic <div> markup breaks form submission, mobile pickers, and assistive technologies. Our generators style genuine HTML controls using appearance: none, :checked, :has(), and :focus-visible.

Users can tab through controls naturally, toggle checkboxes and switches with Spacebar, and open native OS option menus on mobile devices.

Vanilla CSS, HTML, :root Tokens & Tailwind

Copy or download synchronized code in four production formats with a custom class prefix.

Choosing the right export tab

Rename the class selector (for example .btn-primary or .checkout-input) and switch seamlessly between scoped Vanilla CSS, clean HTML, reusable :root custom properties, and Tailwind utility markup.

Click Export file to generate a downloadable .css or .html bundle locally in your browser.

Inputs, exports & privacy

Supported inputs
16+ Fading <hr> Lines, Login "OR" Pills & Editorial Ornament Rules
Outputs & exports
Semantic <hr> & role="separator" Flex-Line CSS, HTML & Tailwind

Unlimited preset browsing, undo steps, and stylesheet downloads with zero sign-up required.

Every preview, CSS token import, and file export runs 100% locally in your browser.

FAQ

Frequently asked questions

Practical details on browser compatibility, accessibility, and code output.

Runs 100% in your browser
How do the left and right lines auto-fit around centered text?

`display: flex; align-items: center; gap: 14px;` with `flex: 1` on `::before` and `::after` stretches both lines evenly around any label width.

Why reset `border: 0` on custom <hr> elements?

Browsers apply a default 1px inset border to `<hr>`; resetting `border: 0` lets `height` and `background: linear-gradient(...)` render cleanly.

How does Fading Pill Divider soften its outer ends?

`::before` fades from `transparent` to `lineColor` while `::after` fades from `lineColor` back to `transparent`.

What is Left Kicker + Trailing Line used for?

It pairs an uppercase section or date heading on the left with a single `::after` rule stretching to the right margin.

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina