Display options

The 'display' property has some additional options, including 'run-in', 'compact' and 'marker'.

Run in heading

The 'run-in' option is useful for creating specific styles for a range of text at the beginning of a block. An element given this style is assumed to be an in-line element that begins the block content of the next element. The style information only applies to the 'run-in' part of the resulting block. A single space character should appear between the content of the two elements. For example:

name { display: run-in ; font-weight: bold }
summary { display: block ; font-weight: medium }


<name>J Smith</name>
<summary>Software Developer, working in Java,
C++ and Perl.</summary>

   J Smith Software Developer, working in Java, C++ ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.