HTML and CSS Reference
In-Depth Information
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>White-space Property</title>
<style type="text/css" media="all">
p.pre {white-space: pre;}
p.nowrap {white-space: nowrap;}
<p> This is a standard paragraph
that white
is not preserved. </p>
<p class="pre"> This paragraph
it's white-space
rules adjusted to
like a
pre element. </p>
<p class="nowrap"> This very long paragraph really ought to wrap but
it doesn't because the nowrap value has been set for the white-space
property. </p>
As we have seen throughout this section, CSS affords us great power to change the
default characteristics of markup languages like (X)HTML. We presented these properties in
a more expanded form because of their potential for abuse, but by no means should this
advice be construed to suggest that you should avoid such properties, as they are essential
tools in your CSS toolbox. We'll cover the wide range of other properties available to us in
the following two chapters.
Major Themes of CSS
Before finishing the chapter, we need to take a look at some of the major themes surrounding
the theory and practice of using CSS. Like the concerns of markup, these are deep issues you
will likely encounter over and over again as you design or develop Web sites or applications.
While the questions posed by these themes are fairly easy to describe, they are very difficult
to answer.
Search WWH ::

Custom Search