| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
Block Display PropertiesAll of the following are specific to visual media.margin-top, margin-right, margin-left, margin-bottom
margin
This specifies the size of the top, right, bottom and left margins, in that order. If one value is given, it applies to all sides. If there are two or three, the values of the opposite sides are used for the missing ones. padding-top, padding-right, padding-bottom, padding-left
padding
Specifies the size of the top, right, bottom and left paddings, in that order. If one value is given, it applies to all sides. If there are two or three values, the values of the opposite sides are used for the missing ones. border-top-width, border-right-width, border-bottom-width, border-left-width
border-width
border-color
The 'border-color' property sets the color of the four borders. The number of values specified produces the same results as for border-width. border-top-style, border-right-style, border-bottom-style, border-left-style
The values for this element are specified, as for border-width. Some values which may not be self-explanatory include solid (solid line), double(double line) and groove, ridge, inset and outset, which produce 3D effects border-style
The values for this element are specified, as for border-width. Some values which may not be self-explanatory include solid (solid line), double(double line) and groove, ridge, inset and outset, which produce 3D effects border-top, border-left, border-bottom, border-right
Sets the appearance of the border for the given side. border
The 'border' property is a shorthand method for setting the same width, color and style on all four borders of an element. width
Sets the width of an element, scaling it if necessary. min-width
Sets the minimum allowed width of an element. max-width
Sets the maximum allowed width of an element. height
Sets the height of an element. min-height
Sets the minimum allowed height of an element. max-height
Sets the maximum allowed height of an element. float
Moves the element towards one side, wrapping text around it. clear
position
top, left, bottom, right
z-index
The integer is the level within the current stacking context, unless is is zero in which case it sets up a local context. Higher numbers are further towards the top. If auto is used, the level is the same as the element in which it is contained. All elements are transparent unless a background is specified. direction
To change the text in inline-level elements, the unicode-bidi property's value must be embed or override .
unicode-bidi
line-height
vertical-align
overflow
visible outside the allocated space, make the parts which extend beyond the allocated boundaries hidden , make it visible by use of scroll bars, or let the viewing program auto matically decide (usually causes scrollbars).
clip
overflow is anything other than visible .
CSS2 only allows one value for shape :
visibility
This property defines if an element is actually displayed, even though space is left for it. collapse should only be used on table rows and columns, otherwise it is the same as 'hidden'.
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |