My own server My Home page Sign Guestbook Read Guestbook
The Apache manual The PHP manual PHP examples (Core PHP Progr.) PHP examples (Pro. PHP Progr.) My own PHP exemples

PHP test 6

Cascading style sheets (CSS)


This page is an experiment with CSS, Cascading Style Sheets.

PHP is used to change text size, and to show the code for the page.


Here is an example of "literature":

Little Women

by Louisa May Alcott

 

CHAPTER ONE

"Christmas won't be Christmas without any presents," grumbled Jo, lying on the rug.

"It's so dreadful to be poor!" sighed Meg, looking down at her old dress.

"I don't think it's fair for some girls to have plenty of pretty things, and other girls nothing at all," added little Amy, with an injured sniff.

"We've got Father and Mother, and each other," said Beth contentedly from her corner.

The four young faces on which the firelight shone brightened at the cheerful words, but darkened again as Jo said sadly, "We haven't got Father, and shall not have him for a long time." She didn't say "perhaps never," but each silently added it, thinking of Father far away, where the fighting was.

Nobody spoke for a minute; then Meg said in an altered tone, "You know the reason Mother proposed not having any presents this Christmas was because it is going to be a hard winter for everyone; and she thinks we ought not to spend money for pleasure, when our men are suffering so in the army. We can't do much, but we can make our little sacrifices, and ought to do it gladly. But I am afraid I don't." And Meg shook her head, as she thought regretfully of all the pretty things she wanted.

"But I don't think the little we should spend would do any good. We've each got a dollar, and the army wouldn't be much helped by our giving that. I agree not to expect anything from Mother or you, but I do want to buy UNDINE AND SINTRAM for myself. I've wanted it so long," said Jo, who was a bookworm.

"I planned to spend mine in new music," said Beth, with a little sigh, which no one heard but the hearth brush and kettle holder.

"I shall get a nice box of Faber's drawing pencils. I really need them," said Amy decidedly.


This text is from http://www.literatureproject.com/little-women/index.htm

And here is a list:

  1. Funny things
  2. Green things
  3. Green and hardshelled things
  4. Things that go BOOM in the night
  5. Furry things
  6. Furry and cuddly things
  7. Furry and non-cuddly things

You can change text size, and see the code for this page:

Text size -20%      Show normal page
Text size -10% Show code
No change
Text size +10%
Text size +20%
Reset text size     

PHP test number 6 used to be a script to let you generate a search string (or strings) for searching the old Lois-Bujold mailing list archives.

The old script 6_search-form.php is still here if you want to look at it, but the Bujold-list has a new list server from January 2002, so my script is no longer useful.

For information on the new Lois-Bujold mailing list, go to http://lists.herald.co.uk/mailman/listinfo/lois-bujold


Page created 2002-01-06, last changed 2003-03-23 15:15
This mirror page last changed 2009-12-04

© 2003 Bo Johansson