Fullbean.com |
Test Case to Demonstrate
Cascading Style Sheets
(Unmodified body text begins here)
Unmodified text in the body of the document will appear small, the same size as that text marked with the <p> tag.
(The unmodified body text ends here.)
The appearance of this page is controlled by a linked cascading style sheet viewable at http://www.fullbean.com/styles/freestyles.css If this link displays a screen asking you which program to use to view the file, choose any program capable of reading text files, for example Notepad for the P C user. This author suggests that you print out the page cited above so that you can see how it affects the current page. Then, using the two documents as models, create your own Cascading Style Sheet and link it to your html document.
Please note that viewing the source code for the current page will not reveal the html coding for the page.
This is p.
This is p br. Notice that there is no blank line inserted between this line and the previous one. In this regard, p br works like <br>. Unlike <br>, it need not be an empty tag. It can contain attributes specifying color, size, and so forth. This is a major reason for recommending the use of Cascading Style Sheets.
This is a p tag within span brackets. It calls for large red Comic Sans MS type, bold, italicized with an aqua background.
This is yellow text centered on a black background. It was created using a span tag
This is p bold.
This is p green.
This p purple.
This is p margin. It is 2 em from the left margin
This is bmargin. It is also 2 em from the left margin and is blue
This is p right. It is 2 em from the right margin and is black.
This is p.sans. It is Comic Sans MS font and it is black
This is p.bsans. It is Comic Sans MS bold and it is black.
This is a table controlled by Cascading Style Sheets. As is the case with every effect on this test page, you can see the html coding by viewing the file http://www.fullbean.com/styles/freestyles.css
Here is the operation of the float left property whereby an image is positioned to the left of several lines of text. Note that each line of text floats against the image instead of positioning itself at the bottom of the image.
Here is the operation of the float right property whereby an image is positioned to the right of several lines of text. Note that each line of text floats against the image instead of positioning itself at the bottom of the image.
Return to the Fullbean Main Page
Copyright © 2004 by Ralph Sutter. All Rights Reserved.
Please send your comments regarding this site to webmaster@fullbean.com