Template:P-collapse/s/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:P-collapse/s. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses TemplateStyles: |
{{p-collapse/s}} and {{p-collapse/e}} are a pair of templates, that collapses the line spacing (ie top and bottom margins) between paragraphs wrapped by them to 0, so that individual paragraphs appear to be vertically next to each other without needing to code specific margin collapses for those individual paragraphs.
Usage
[edit]{{p-collapse/s}} This is the first example paragraph. This is the second example paragraph. ... This is the last example paragraph {{p-collapse/e}}
which produces:
This is the first example paragraph.
This is the second example paragraph.
...
This is the last example paragraph