Text Specific Style Attributes

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
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
Sans Serif
Cursive
Fantasy
Monospace
font size. Sizing in style sheets offers the designer to set the point size. To set a font in point size, use the abbreviation pt immediately next to the numeric size: {font size: 12pt}.

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 Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.