User:Ccsmith/sandbox/wiki3

Common.css
Common.css allows you to put CSS coding in only once for a particular tag rather than having to put inline styling of each occurance of that tag.

Inline styling
It is not easy being green It is not easy being green
 * Lets say we want some text to be green in color. Such as:
 * If we use inline styling, the coding looks like this:
 * This coding is then required for everywhere you want the text to be green.
 * But there is an easier way.

Class
It is not easy being green
 * First we will type this code where we want the text to be green:
 * You will notice that we have substituted the word "class" for "style."
 * The word following "class =" is the name of the class which is in this case "greenText."
 * In other words, we are going to color the text with a class named "greenText."

Create classes
.colorText {color:green }
 * You may be asking, where is the "color:green" code in this class?
 * We start by creating the "class" named "greenText ."
 * The class is created on a page called: "User:YourUserName/common.css". Each of you have such a page.
 * Then type the following:

Place a class

 * Let's suppose you want all text in "div" tags to be green.
 * Inside of every  you want the text to be green, you will type


 * If you enter a  without the class, the text will be whatever is default.