O'Reilly logo

XML Companion, The, Third Edition by Neil Bradley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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++ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required