White Spaces

The white-space property is used to control the white spaces inside a block of text.

The values of white-space are.

ValuesDescription
normal
capitalizeReplaces the sequence of white spaces with a space character.
preWhite spaces are considered.
nowrapLine breaks are not considered.
inherit The property is inherited from the parent.


example
<style>
white-space : nowrap
white-space : pre
</style>

snippet
<html>
<head>
<style>
p {white-space:nowrap;}
div {white-space:pre}
</style>
</head>
<body>
<p>Sometimes you will never know the value of a Moment until it becomes a memory.</p>
<div>
Name Age Grade
Fernando 35 A
Michael 27 C
Abrahim 54 B
Yashva 22 A+
</div>
</body>
</html>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +