![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HomeWeb DevelopmentShort ContentsIntroductionCSS Basics Selectors Terminology Colours Fonts Text Blocks Classification Full ContentsIntroductionOther CSS sitesDownload this Guide CSS BasicsSetting Styles...setting values Comments Inheritance Selectors...by class...by id ...contextual Psuedo Classes ...<A> links Psuedo Elements ...first line ...first letter TerminologyCascades"! important" CSS element model Block elements Terminology used here Units ...lengths ...colours ColoursForeground colourBackground ...-color ...-image ...-repeat ...-attachment ...-position FontsFont...-family ...-style ...-variant ...-weight ...-size Textword-spacingletter-spacing text-decoration vertical-align text-transform text-align text-indent line-height Blocksmargin-topmargin-right margin-left margin-bottom margin padding-top padding-right padding-bottom padding-left padding border-top-width border-right-width border-bottom-width border-left-width border-width border-color border-style border-top border-left border-bottom border-right border width height float clear ClassificationDisplaywhitespace list-style list-style-type list-style-image list-style-position |
Block Display Propertiesmargin-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-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. height
Sets the height of an element. float
Moves the element towards one side, wrapping text around it. clear
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |