Permanently protected template

Difference between revisions of "Template:Break-inside"

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
(Broke ur wiki)
(Undo revision 15652611 by 174.92.221.82 (talk) - vandalism)
Line 1: Line 1:
  +
{{#switch:{{lc:{{{1|}}}}}
Broke
 
  +
|avoid|avoid-column=<!--
  +
-->-webkit-column-break-inside:avoid;<!--Chrome, Safari, Opera 15+--><!--
  +
-->page-break-inside:avoid;<!--incomplete fix for old Firefox; some old Opera--><!--
  +
-->break-inside:avoid-column;<!--CSS standard, IE 10+-->
  +
}}<noinclude>{{documentation}}</noinclude>

Revision as of 05:37, 27 May 2016

Template documentation


Usage

This template generates the equivalent of CSS3 style property break-inside.[1][2]

On Webkit browsers (Safari, Chrome, Opera 15+), it uses the experimental property -webkit-column-break-inside.

Use it in CSS style properties to avoid a column break within a child element of a multi-column element.

Example

  • {{break-inside|avoid}} gives:
    -webkit-column-break-inside:avoid;page-break-inside:avoid;break-inside:avoid-column;

References

See also