We last left off discussing text in CSS. In this article we will finish this discussion, and cover how to manipulate fonts as well. And if time permits, we will also go over tables in CSS. It's a lot of ground to cover, so let's jump right in.
CSS: Text, Fonts, and Tables - Word Wrapping (Page 2 of 6 )
You can remove text wrapping from an element using white-space: nowrap:
<html>
<head>
<style type="text/css">
p
{
white-space: nowrap
}
</style>
</head>
<body>
<p>
Hambone Hambone whats your name? Ask me again and I will tell you the same. You fool! Mr. T pities you greatly! He has decided to auction his multitude of gold chains in order to help raise money to get a girl to date you. I'm not certain it is enough however...
</p>
</body>
</html>
The Font-ain of Youth
Manipulating fonts in CSS is one of the great joys of life. If you are a nerd that is. Otherwise it's just a way to spiffy up your text. And who doesn't want to do that? We'll start off with the simple: