Home
Home Page
Than differ id and class
Creation WAP of a page
Passions around AJAX are heated
Answers to often asked questions on XHTML and HTML
The sanction of the screen and marking of pages
Two styles ajax'?
Business Macromedia lives
XHTML+CSS. Advantages are obvious
Microformats
The semantic network based on microformats
Fonts and CSS
CSS from And up to I
Properties of the text
Illumination of the link
Change of a background in the table
Fixation of fonts on page with the help of the table of styles
Krossbrauzernoe alignment on the center
Polling with help AJAX
HTML
Links
 

Properties of the text

Properties of the text are applied practically to all elements CSS which can include or describe the text, the truth, in view of some restrictions in each separate case, Property text-align remembers an arrangement of the text concerning borders of a working window of a browser or a cell of the table, differently - is responsible for alignment of the text block. Accordingly, it is applied together with so-called blokovymi elements, that is the elements supporting display of text files: R., N1-N6, TD, TR and some other. It is possible to use one of four values of the given property: left - alignment on the left border of the screen or a cell of the table, right - on the right border, center - alignment on the center and justify - extension of the text on all to width of the screen or a tabulared cell,

Example:



R {text-align: justify:}


Properties text-decoration. Operates a tracing of symbols: with his{its} help it is possible to set effects of display of the crossed out or underlined text the Given property can accept one of the following values, none - absence of any effects, underline - the underlined text, line-through - the crossed out text, overline - Had strochechnyj and blink - the flickering text. Pay attention that value overline the given property is not supported by browser Netscape Navigator and value blink - on the contrary, program Microsoft Internet Explorer. An example:

A (text-decoration: none:}

The ATTENTION the Element And can be submitted in the text of file CSS with use of definitions. link - link simply placed on web-page active describes a status of the link nazhimaemoj at present time, hover - a status ssypki during the moment kagda the user has guided on it{her} the cursor of the mouse and Visited displays the visited link. Definitions of statuses enter the name through a colon after the name of an element, for example A:visited {color:2F4F4F;}

Property text-indent, used, as a rule, together with element P, specifies a space of the first line of the text block in pikselakh, centimeters millimeters in percentage of the general{common} length of a line. For example, it{him} use for the organization tabulated abzacnykh spaces of so-called new paragraphs. For example:




R {text-indent: 30pt:}


Property line-height establishes a line spacing of the text to web-page in pikselakh, centimeters, millimeters or percent{interests} from an interval, certain{determined} to default, To this property it is possible to apply value normal leaving certain{determined} in adjustments of a client browser a line spacing without changes.

Example:



R {line-height: 5rkh:}


Property letter-spacing establishes distance between symbols of the text in pikselakh, centimeters or millimeters, but it is distinguished only by browser Microsoft Internet Explorer. Use of attribute normal, leaving the intersymbolical interval accepted by default is possible.

Example:



R {letter-spacing: Zrkh;}


Property vertical-align defines{determines} vertical alignment of the text in cells of tables or graphic representations in the text block and also is not distinguished by browser Netscape Navigator. It can accept one of the following value: top - positioning po to the top border of a cell, middle - but to the center of a cell, bottom - on the bottom border of a cell, baseline - on a conditional base line, top-text - on the top point of a text line, bottom-text on the bottom point of a text line.

Example:



TD (vertical-align: top:}

IMG (vertical-align: top-text.}


Property text-transform sets transformation of the text block determined by an element normal-standard display of the text without any changes, capitalize-each word of the paragraph begins with a capital letter, thus the register of the symbols determined in code HTML, is ignored; uppercase all symbols of the text become header and, at last, lowercase - all symbols becomes lower case. This property is supported only by browser Microsoft Internet Explorer.

Example:



CAPTION (text-transform-capitalize:}