Skip to content

Conversation

@Khogendrarupini
Copy link
Owner

Description

Adds concrete examples of “appropriate CSS” for styling the <hr> element.
This update introduces examples of common line styles, including a simple solid line, a thicker line, a dashed line, and a decorative symbol using ::after.

Motivation

This change addresses the request in mdn#42363, which asked for explicit CSS examples after the documentation referenced “appropriate CSS.”
The new examples improve clarity and help readers understand how to style <hr> using modern CSS.

Additional details

No structural changes to the page.
Only documentation enhancement with practical CSS examples.

Related issues and pull requests

Fixes mdn#42363

This update adds concrete examples of “appropriate CSS” for styling the <hr> element, addressing the request in mdn#42363.

The new section includes examples for:

A simple 1px line

A thicker line

A dashed line

A decorative symbol using ::after

These examples clarify how to style <hr> with modern CSS while preserving its semantic purpose.
@Khogendrarupini Khogendrarupini merged commit a77f6c1 into main Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HR article uses phrase "appropriate CSS"

2 participants