Template:Style P-Separator custom

This style is to design paragraph in text. To highligt just several symbols use templates for symbol styles.

A neutral separator between text fragments. It marks a division without reproducing the particular stars, ornaments or rules of the printed source. The separator is centred inside the current text block and remains usable in a narrow column or on a small screen.


Modifications:

  • a short horizontal rule, 4em wide by default
  • equal 0.75em spaces above and below
  • centred inside the current text block
  • width never exceeds the available space
  • the common space or its top and bottom parts can be overridden by named parameters


To copy:

<hr role="separator" style="box-sizing: border-box; width: 4em; max-width: 100%; height: 0; margin: 0.75em auto 0.75em; border: 0; border-top: 1px solid currentColor;">


Parameters

Parameter Values Default What it does
width 4em, 15%, 60px 4em width of the rule; it is limited by the width of the current text block
space 0.75em, 1em, 1.5em 0.75em common vertical space above and below the rule
top 0, 1em, 2em value of space overrides only the space above the rule
bottom 0, 1em, 2em value of space overrides only the space below the rule

The default form is normally sufficient:

{{Style P-Separator custom}}

Optional parameters should be used only when the structure of the page requires a different width or spacing:

{{Style P-Separator custom|width=15%|space=1em}}

The common spacing can be kept while one side is changed independently:

{{Style P-Separator custom|top=1em|bottom=0.5em}}

The older {{HPB-CW-separator}} is kept unchanged, so existing pages are not affected.