![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HomeWeb DevelopmentShort ContentsIntroductionCSS Basics Selectors Terminology Media Types Paged Media Aural Media Colours Fonts Text Blocks Lists & counters Tables Miscellaneous Full ContentsIntroductionChanges from CSS1Other CSS sites Download this Guide CSS BasicsSetting StylesUsing external files ...media dependant Setting Style values Comments Inheritance Selectors...by class...by id ...contextual ...all elements ...if a child ...adjacent elements ...by attributes Psuedo Classes ...<A> links :hover :active :focus :lang :firstchild Psuedo Elements ...first line ...first letter ...:before and :after ...inserting content TerminologyCascades"! important" CSS element model Block elements Guide Terminology Units ...lengths ...colours Media Types...giving style...supported types Paged Mediamarginspage size crop marks left, right, first pages page break before page break after page break inside page names orphaned content widowed content Aural Mediavolumespeak pausebefore pauseafter pause cuebefore cueafter cue playduring azimuth elevation speech rate voice family average pitch pitch range stress richness punctuation numbers table headers ColoursForeground colourBackground ...-color ...-image ...-repeat ...-attachment ...-position FontsFont...-family ...-style ...-variant ...-weight ...-size ...-sizeadjust ...-stretch Textword-spacingletter-spacing text-decoration text-shadow vertical-align text-transform text-align text-indent line-height quotes Blocksindividual marginsall margins individual padding all padding border widths all border-widths border-color border-style individual borders all borders width min width max width height min height max height float clear position ...where layered position text direction bidirectional override line height vertical align overflow clipping visibility Lists & counterslist-stylelist-style-type list-style-image list-style-position marker offset resetting counters incrementing counters nesting counters counter appearance displaying counters Tablescaption positionlayout method border display border spacing empty cells MiscellaneousDisplayRun-in boxes whitespace cursors outline outline width outline style outline colour |
Text propertiesword-spacingDetermines the custom spacing between adjacent words.
letter-spacingDetermines the custom spacing between adjacent letters.
text-decorationSpecifes special text effects.
text-shadowAllows a shadow to be added behind text.
Text shadows can be applied to :first-letter and :first-line pseudo-elements. You should be careful that CSS1-only viewers still make your text readable, since this property is new to CSS2. vertical-align
text-transformConverts text as specified.
text-align
text-indent
line-height
This sets the distance between two adjacent baselines. number specifies a multiple of the font size, and it can be inherited by other elements.percentage s are inherited as the calculated value.
Negative values may not be used. The following have the same effect: P { line-height: 1.7; font-size: 10pt } /* number */ P { line-height: 1.7em; font-size: 10pt } /* length */ P { line-height: 170%; font-size: 10pt } /* percentage */ Quotes
This property specifies how to display quotation marks. The value is a space seperated list specifying the symbols to be used for each level of quotation. Quotations are opened and closed by use of the content property of :before and :after pseudo-elements, with quotations being nested with the appropriate symbols displayed.
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |