background:bg-color bg-imageposition/bg-sizebg-repeat bg-origin bg-clip bg-attachmentinitial|inherit; Note:If one of the properties in the shorthand declaration is the bg-size property, you must usea / (slash) to separate it from the bg-position property, e.g. background:url(smiley.gif)...
Border Properties Page Break Properties Other Properties CSS Selectors This CSS tutorial explains how to use the CSS property calledbackgroundwith syntax and examples. Description The CSS background property defines the initial position of thebackground-imagefor an element. It is a shorthand property ...
Specifies up to five separate background properties, in a shorthand form. With this property, you can set the background color and / or image of any visible HTML element. Furthermore, you can set how the background image is displayed.
CSS background-position property specifies the initial position of an image in the background of an HTML element or an entire HTML page. CSS background property can be used to set all the properties mentioned above with a single property. This kind of a use is referred as CSS shorthand pro...
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Thebackgroundproperty allows you to combine together in only one declaration any, or all, of five individual Cascading Style Sheet properties related to background. This property is not inherited. Each of these five individual properties are discussed on their own page. ...
The Background properties are used to set the background color, background image. It also helps to repeat the background and make background scroll with the contents etc. CSS Background-Color CSS Background-Image CSS Background-Repeat
css颜色及背景属性(CSScolorandbackgroundproperties) One.Color:colorpropertysettings Thecolorpropertyallowsthepagemakertospecifythecolor ofanelement.ThecolorvalueisakeywordoraRGBformat. Thecommonlyusedpresetcolorkeyhas16,asshowninthe followingtable. 16commonlyusedcolorkeywords ...
In the first rule of the following example, only a value forbackground-color has been given and the other individual properties are set to their initial values. In the second rule, many individual properties have been specified. ...
Border Properties Page Break Properties Other Properties CSS Selectors This CSS tutorial explains how to use the CSS property calledbackground-color propertywith syntax and examples. Description The CSS background-color property defines the background color of an element. ...