![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
Font propertiesPLEASE NOTE: This section only describes the font properties that are most likely to be required. For information about the advanced @font-face rule for specifying fonts, see the W3C CSS2 specification and look under "fonts".font
caption, icon, menu, message-box, small-caption, status-bar refer to the fonts used for the respective items within the viewing program.For all of the other value types, see the individual properties below. font-family
font-style
font-variant
font-weight
Normal and 400 are the same, as are bold and 700 . The bolder and lighter are values relative to whatever the
inherited value would have been.
font-size
absolute-size is one of xx-small, x-small, small, medium, large, x-large, or xx-large .relative-size is larger or smaller and represents an absolute-size, relative to what is inherited. length is a positive number with the units em, ex or pt . Values are relative to what would have been inherited,
but on other properties it refers to the font-size of the current element.Examples: P { font-size: 12pt; } P { font-size: larger } P { font-size: 150% } P { font-size: 1.5em } font-size-adjust
font-stretch
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |