Style
Style
Style
|
Text with StyleWith Cascading Style Sheets, designers can create exciting illusions without the use of graphics and spacers , resulting in shadowed text, splashy headings, and poster-sized headlines. To create shadowed text, negative margins are applied to the top layer/s (or second and third items) with margin-top and can be called in the body of the document with Class. The text can have two or more layers and can be aligned to create a small drop shadow or offset further to give a motion effect. Place the following code within the STYLE Tags at the top of the document. (Note: A period . is placed before the style definition when using CLASS.)
To call this style in the Body use Class like this:
Shadow
Shadow
Modifying TextTo modify the shadow, change the number values for the top-margin and left-margins. By changing the left-margin number in the example to 8, the shadow now falls to the left like so:Shadow
Shadow
|
Splashy HeadingsCreate splashy headings with color is quick and easy with style sheets and does
not require making an image in a graphic's editor. In this example, the background-color
property is set to black and the color (foreground} to yellow like this: Splash Heads We've just used the inline style method; the style rule is not placed at the top of the document and is called simply with SPAN wherever you wish to place it within the document. Poster HeadingsPoster -size headings are just as easy using inline style sheets. Here's how:
It! |
Home. | . More Style . | . Graphics . | . Words . | . HTML Tips