You define a class by giving it a name
with a fullstop (.) just before it:
and so on..
Once you have defined a class, you can reference it throughout your webpage, as shown below.
This css style set is placed within your HEAD tags:
These css references can be placed within your BODY tags:
<div class="leftside">your text here</div>
<span class="rightside">your text here</span>
<div class="mystuff">your text here</div>
Example: This is how the "leftside" text will look on a page.
Although you can use an ID the same way you use a Class,
an ID should only be used once per page. For instance, you would use an ID for a main area where it is needed only once and class for areas that will use the class more than once.
The popular size range is between 7pt and 12pt.
Anything beyond 12pt gets pretty ugly.
Font size 7pt Font size 8pt Font size 9pt Font size 10pt Font size 11pt Font size 12pt
<span style="font-size: 9pt">your text here</span>
Another quick way to change font sizes in css:
The value in the example below is a prioritized list of font family names and/or generic family names.
The first value or name is the desired font. Others names are often added, separated by a commas to indicate that they are alternatives:
font-family: Verdana, Arial, helvetica, sans-serif
<span style="font-family: Verdana, Arial, helvetica, sans-serif">your text here</span>
Although just about any font can be inserted in the font list,
style sheet designers are encouraged to offer at least one generic font family as a last alternative.
Because links are active elements, they change with user action.
Links have four states called "psuedo-classes":
1) link: An unvisited link waiting to be clicked.
2) visited: A link that has been "visited", or clicked on before.
3) active: A link that is in the state of being clicked.
4) hover: A link that is being "hovered" over by the mouse cursor.
All attributes are Inherited except First-Letter and First-Line.
All filters must have values attached to them..
You can Apply these filters to Images or Text.
Filter:glow(color=#F8B745,strength=2)} adds a glow effect around text/image
Filter: Blur (Add = 1, Direction = 90, Strength = 11) gives your text/image a blurry effect
Filter: Dropshadow;(color=#c0c0c0,offX=2,offY=2) gives your text/image a dropshadow effect
Filter: Shadow(Color=#94BAC9, Direction=225) width: 257; height: 10 gives your text/image a shadow effect
Filter: Wave(Add=0, Freq=6, LightStrength=2, Phase=2, Strength=2) gives your text/image a wave effect
Filter: Flipv height:1
flips your text/image vertically flips your text/image vertically
Filter: Fliph height:1
flips your text/image horizontally flips your text/image horizontally
<span style="Filter:dropshadow(color=c0c0c0,offX=2,offY=2) font-size:9pt;width:290px">gives your text/image a dropshadow effect</span>
Colored Scroll Bars
This is one of the most popular css scripts: you can also use hexidecimal values in place of default webpage colors.
Example of hex codes for the below color:
#808080 = gray
#000000 = black
#FFFFFF = white
Remove Underline On Links
This will remove the underline on your links, making them look neater and is very popular...
Scrollbars In Layers
This script allows scrollbars in layers.
Add this in your layer
So the layer script reads:
<div id="Layer1" style="position:absolute;
overflow: auto"> </div>
The direction property - Left Side Scrollbar
This will reverse the direction of your text as well as change your scrollbar from right to left.
The direction property can be added to the body:
ltr - Text direction is left-to-right
rtl - Text direction is right-to-left
This style allows you to use your own cursor instead of the default arrow.