![]() |
Text Specific Style Attributes![]() ![]() ![]() ![]() ![]()
The following text and text related attributes are available for use in all methods of style sheets
font family: This attribute controls the face of the font by setting arguments for either of the following: The name of the typeface you want to use. {font family: times} Because an individual computer might not have the installed font of your preference, you might want to add a similar alternative: {font family: times, garamond} You can add generic family name which tells the browser to pick a typeface that atleast shares the same basic attributes as your other choices: {font family: serif} The following type families are recognized with style sheets: Serif font style. This attribute typically dictates the style of text, such as placing it in italics. The appropriate syntax to do this is: {font style: italic). The other legal values for this attribute are normal and oblique. font weight. The thickness of a typeface is referred to as its weight. A range of attributes is available in style sheets, including the following: extra light, demi light, light, medium, extra bold, demi bold, and bold. Before you assign font weights, be certain that the font face you are applying the weight to has that weight available. text decoration, This attribute decorates text, including none, underline, italic, and line through. line height. Another important text related aspect is leading. This refers to the amount of line spacing between lines of text. This space should be consistent, or the result is uneven, unattractive spacing. The line height attribute enables you to set the distance between the baseline, or bottom, of a line of text. To set the leading of a paragraph, use the line height attribute in points, inches, centimeters, pixels, or percentages in the same way you describe font size attributes P {line height: 14p}
|
|
Domain NamesDHTML Document Object Model Features of Dynamic HTML HTML Versus DHTML Netscape's Vision of DHTML Microsoft Vision of DHTML Cascading Style Sheets(CSS) Inline Style Sheets Embedded Style for a Page Linked Cascading Style Sheet Text Specific Style AttributesCSS Attributes Assigning Classes Java Script Style Sheets(JSSS) Object Property Functions Methods
Creating Style Sheets with JSSS New JSSS Methods Working Layers Positioning the Layer Using More than One Layer Moving a Layer Around on the Page Events
The mouseOver and mouseOut Events The mouseMove Event The Keyboard Events The mouseDown and mouseUp Events The dragDrop Event Error Event Form Event The Script Tag Changing Text Color Inline Text Attribute Changes Text Dynamically Changing StylesExample of Dynamically Changing Style Dynamically Changing Content HTML Replacement Changing Text Content An Example of HTML Graphics ReplacementWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |