Publication: Internet Tutor Creating CSS Classes | |
Subscribe FREE to Internet Tutor by clicking here.
THE INTERNET TUTOR
December 7, 2006
------------------------------------------------------------
This week...
- Webmaster Tip: Creating CSS Classes
- Surfin' the Web: Earth Shots
- Software Spotlight: Windowpaper XP
- The Oddball Wall: Gadgets and Inventions
- Computer Tip: Google Gets Better
Guess how I was awoken today. Was it the alarm clock? No.
Was it the telephone? No.
Was it the doorbell? No.
Was it someone licking my ear? Yes!
Was it my wife? No!!!
It was that darn puppy. The bed is three times taller than that
little pup, but somehow she decided it was time for me to get
up and managed to jump up onto the bed to let me know it. The
top of the bed is a good three feet off the floor, and the
puppy is only 10 inches tall, quite a leap for a very small
dog.
Just think, it was only a few short weeks ago that she was too
worried to tackle the stairs.
------------------------------------------------------------
DRUM FRENZY - Roll Up Drum Set - The Gift EVERYONE Loves...
Store Price: $99.99
OUR PRICE: $59.99
Better than a full set of drums but only a fraction of the
cost and size. Each of the four (4) different drums can be
adjusted to eight (8) different tones, including cymbals,
providing 32 DIFFERENT SOUNDS. Includes:
- 30 preset rhythms
- 10 demo songs to play along with
- 20 preset drum combinations
- Volume adjustment
- Tempo adjustment.
- Headphone jack to practice with privacy.
- Complete with detailed instructions.
Folds for storage or easy transport. A gift that any music
lover or would-be musician will love.
Drum Frenzy - Roll Up Drum Set
------------------------------------------------------------
WEBMASTER TIP - Creating CSS Classes
Note: In code examples I add a period after each left arrow
bracket so the code can be viewed in all e-mail programs. If
you copy and paste, be sure to remove the periods or it won't
work.
Question: How do you create a "class" in CSS?
Simon Says: A CSS class is either created in an external style
sheet or embedded styles. Here's an example:
p.quote {color: navy; font-size: 75%; padding: 20px;}
If that code were in your embedded or external style sheet, any
time you used that paragraph class the font would be rendered
in Navy color, be 75% the size (so it would be slightly smaller)
of the default text, and there would be 20 pixels of padding so
the textwould be indented on both sides and on the top and
bottom.
The code example is a paragraph tag, followed by a dot and a
name. The name can be anything as long as it starts with a
letter (A-z) and doesn't include any special characters. The
name I gave the class was "quote" and, as you might guess,
could be used to give a quotation a different look from the
body of the text. To create a class, just add a dot (.) after
any selector (HTML element) and add a name.
To use that class on your page, add the class to a normal para-
graph:
<.p class="quote">
Each time you code a paragraph like that the text would be
rendered in the style you set for the class in your embedded
or external style sheet. Cool stuff, the more CSS you know
the more you'll like it.
------------------------------------------------------------
You Can Lose Weight Over The Holidays...
The Amazing Hoodia Diet Patch Will Help You Lose 20 lbs In
6 Weeks Without Hunger. Eat The Foods You Love And Burn Fat.
As Seen On CBS 60 Minutes. 100% Satisfaction. Free Trial.
Visit: Lose weight here
------------------------------------------------------------
SURFIN' THE WEB - Earth Shots
Earth Shots features a Photo of the Day having something to
do with the world around us, most of the natural world, but
not always. I have to tell you, the photography is outstanding!
Don't miss this one, and be sure to visit the archives pages.
It's been a long, long time since I've seen photography this
good.
http://www.earthshots.org/
------------------------------------------------------------
GopherCentral's Question of the Week
Do you think explosives were planted in the Twin Towers to
bring them down?
Please share your opinion, visit: The Question of the Week
------------------------------------------------------------
SOFTWARE SPOTLIGHT - Windowpaper XP
Here's one for Windows XP users. Windowpaper XP helps you to
quickly and easily add a background photo or image to any
Windows folder, and you can change the text color too so you
don't have to only use light colored photos or backgrounds.
Windows operating systems prior to XP had this options built
in. Actually, XP still does but Microsoft hid it and removed
the documentation about the option. Now you can have it back.
http://www.sodabush.com/products/windowpaperxp/index.php
Note: I do not provide support for the featured software.
Contact the software vendor for support. No warranty is made
or implied as to the usefulness or appropriateness of
featured software.
------------------------------------------------------------
HOME ORGANIZER WITH MAGNETS, DRY ERASE BOARD & KEY HOLDER
Normal Retail: $24.99
DEAL PRICE: $9.99
Stylish & Functional! Once you get this item into your home
or home office, you'll wonder how you ever did without it.
It's perfect for organizing so many things like:
- Keys
- Mail
- Your & Your Families Busy Schedule
- Messages and more...
It even comes with magnets and a dry erase pen! Grab one or
two of these while supplies last. I got two of them... one is
in my kitchen and the other one is a gift for my sister-in-law.
Home Organizer and More!
------------------------------------------------------------
THE ODDBALL WALL - Gadgets and Inventions
On this day in 1945 the microwave oven patented. Wow, it sure
took a long time before it became available to the average
consumer. Anyway, todays whoopty-do is about gadgets and
inventions.
1) Ron Popeil has invented enough gadgets to sell over 2
billion dollars worth. You might remember the Pocket Fisher-
man, Chop-O-Matic, or one of his many other gadgets. What's
the name of his company?
a. Popeil and Sons b. The Gadget Master c. Ronco
(Corporation)
2) The first answering machine, invented Willy Müller, stood
3 feet tall. In what year did Willy invent the answering
machine?
a. 1935 b. 1950 c. 1967
3) You've probably heard the expression, "best invention since
sliced bread" before. Sliced bread, first invented in 1912,
wasn't such a good invention at first, with the inventor trying
to use hat pins to hold the bread together. He kept at it, and
finally invented a machine that would slice the bread and wrap
it in plastic. What year was it?
a. 1916 b. 1921 c. 1928
4) The first cash register, invented in 1883, had kind of a
funny nickname when it came out. What was it?
a. The Cash Cow b. The Incorruptible Cashier c. The Money
Minder
5) When I was growing up one of the most wonderful gadgets
was the table-side jukebox found in many diners. The jukebox
was around long before that though, since 1889 to be exact.
What was this gadget
called way back then?
a. Nickel-in-the-Slot machine b. Band-in-a-Box c. Table
Music Box
6) Joshua Lionel Cowen was an accidental inventor. That is,
he invented things all right, but what he invented always
seemed to better suited for other uses. His fuse for camera
flashes ended up being used as underwater fuses by the Navy.
His creative window display for selling merchandise didn't
sell, but the toy car that rode around the window on a track
to highlight the merchandise was what everyone wanted (which
eventually became Lionel model trains). And his battery
operated plant light became something else too. What was it?
a. Black light b. Flashlight c. Strobe light
7) The first Eskimo Pie chocolate covered ice cream bar on a
stick was invented in 1934. What was its original name?
a. I-Scream-Bar b. Ice Cream Paddle c. Eskimo-on-a-Stick
8) Italian inventor, Guglielmo Marconi, proved the feasibility
of radio communication. In 1899 he flashed the first wireless
signal across the English Channel and later received the letter
"S", telegraphed from England to Newfoundland. This was the
first successful transatlantic radiotelegraph message. How much
time passed between the sending and receiving of the message?
a. 2 hours b. 2 months c. 2 years
And now for one that's sure to cool your jets...
9) Willis Haviland Carrier invented air conditioning. U.S.
Pat# 808897 was awarded to him in 1906, but the title of his
invention wasn't called the Air Conditioner. What was it
called?
a. Cool Air Machine
b. Apparatus for Treating Air
c. Temperature Defluctuator
Answers below, here's the scoring:
9 correct: Perfection!
7-8 correct: Outstanding
5-6 correct: Very Good
2-4 correct: Fairly Fair
0-1 correct: Turn the TV off
Answers:
1) c. Ronco (Corporation)
2) a. 1935
3) c. 1928
4) b. The Incorruptible Cashier
5) a. Nickel-in-the-Slot machine
6) b. Flashlight
7) a. I-Scream-Bar
8) c. 2 years
9) b. Apparatus for Treating Air
------------------------------------------------------------
COMPUTER TIPS - Google Gets Better
With yet another reason for making Google your primary search
engine, Google now offers advisories when a site that came up
in search results is known to deal in badware.
Badware includes spyware, viruses, hack attacks, and other
nasty stuff you want no part of.
If you click a link that deals in badware, instead of being
taken to the dangerous site, Google now warns you that site is
known to contain content that can damage your computer. You
then have the option of learning more about spyware, searching
again, or continuing to the original site.
To the best of my knowledge, Google is the first and only
search engine to try to prevent the spread of badware by
filtering there search results. Hats off to Google once again.
Disclaimer: Advice in this column is presented as informational
and is true to the best of my knowledge. Any decisions to follow
this advice is your responsibility. Your computer, your choice.
------------------------------------------------------------
Until next week, ponder these words of Roger L'Estrange: It
is with our passions as it is with fire and water; they are
good servants, but bad masters.
Have an interesting day, Simon
Questions? Comments? Email me at: tutor@gophercentral.com
-------------------------------------------------------------
You can discuss this latest issue in the new Internet Tutor
forum. Check it out here... Internet Tutor Forum
To see more issues please visit: Internet Tutor Archives
_____________________________________________________________
END OF THE INTERNET TUTOR
Copyright 2006 by NextEra Media. All rights reserved.
E-Mail this issue
Subscribe FREE to Internet Tutor by clicking here.
|