![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
Colour and background propertiescolor
color:See the Terms page of this guide for a list of values for colourname .
background-color
background-image
background-repeat
background-attachment
BODY
{
background-image: url(
background-position
If only one percentage or length value is given, it sets the horizontal position only, the vertical position will be 50%. Combinations of length and percentage values are allowed, e.g. '50% 2cm'. Negative positions are allowed. If the background image is fixed to the screen, the placement is relative to the screen instead of the element. background
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. |