Cascading Style Sheets - Miscellaneous
Section 1 - Introduction
Section 2 - Basics
Section 3 - Next Level
Section 4 - Advanced
      Fancy Lists
      Forms
      Advanced Tables
      Frames
      Style Sheets
         Type and possibilities
         Background
         Text, Dimension
         Font
         Border
         Padding, list
         Classification
         Positioning
         Hyperlinks
         Misc.
         Multiple CSS
         You try it
      Image Maps
Section 5 - Publishing
Section 6 - Extras
Appendices
On this page you'll just find a couple odds and ends to add to your CSS arsenal. This section isn't meant to be the sum total of all that can be done with style sheets, but to give you a taste of what's out there. I recommend looking around the internet to find more examples of style sheets. With that said, here are two more things you can do with CSS.

Special letters
Perhaps you'd like to add something special to your paragraphs. One way is through making the first letter big and beautiful. Here's how to do that with CSS:
<style type="text/css">
div.firstcap:first-letter {color: #ff0000;font-size:xx-large}
</style>
And in the text
<div class="firstcap">This is a division. As you will note, the first letter is a big, bold, wonderful letter, adding emphasis to the paragraph. With only the addition of the firstcap class, any or all divisions can have this special lettering.</div>
And you see:
This is a division. As you will note, the first letter is a big, bold, wonderful letter, adding emphasis to the paragraph. With only the addition of the firstcap class, any or all divisions can have this special lettering.


First lines
Another way to make your paragraphs especially exciting is to change the color or style of the whole first line. Here is that style:
<style type="text/css">
div.redline:first-line {color: #ff0000;font-variant: small-caps}
</style>
And in the text
<div class="redline">This is a division. As you will note, the first line is completely red and in small caps, adding emphasis to the paragraph. With only the addition of the redline class, any or all divisions can have this special lettering.</div>
And you see:
This is a division. As you will note, the first line is completely red and in small caps, adding emphasis to the paragraph. With only the addition of the redline class, any or all divisions can have this special lettering.
Fun, no? Well, that's almost all I have on CSS for now. The next page is pretty important. It tells you how to combine style sheets.
Back Home Forward


This page relied heavily on W3schools.com