>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Example 28 << | Prev | Next | Index | Contents

The white-space property can change the normal behaviour (several following whitespaces are collapsed to one and lines are wraped) either to pre (no collapsing and no wraping) or to nowrap (collapsing but no wrapping).

XML SourceCSS stylesheetExample link
(1)
     <AAA>
          <BBB>bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb</BBB>
          <CCC>ccc ccc ccc ccc ccc</CCC>
          <DDD>ddd ddd ddd ddd ddd ddd ddd ddd ddd ddd ddd ddd ddd ddd ddd</DDD>
     </AAA>

BBB {white-space: normal}
CCC { white-space: pre }
DDD { white-space: nowrap }
View output