CSS reference, all of the attributes, examples of use.

Affiliates: 0,3 $how to earn
Pay with:
i agree with "Terms for Customers"
Sold: 2 last one 12.05.2017
Refunds: 0

Uploaded: 30.09.2009
Content: css.chm 728,63 kB


Tutorial on CSS reference. We describe all the selectors and attributes. Properties and arguments.
There are examples of using the JavaScript DOM. Given the differences in different browsers and versions.

Additional information

Each CSS property written in the following general form:
{Svoystvo1 selector: arguments; svoystvo1: arguments}

Selector called the style name, which specifies the formatting options, they are divided into several types: selectors tag IDs and classes.

Selectors are used to determine the tag style tags embedded HTML. Classes are used to create styles that can be applied to any tag HTML, to make a selection or change the style of the text block. Identifiers are typically used in conjunction with the scripts to be able to control the parameters dynamically style, moreover, each identifier within the page must be unique.

Further, the braces indicate the parameter name followed by a colon and CSS its desired value. Write multiple parameters, listing them by a colon, or asking each parameter separately, as shown below.

P {color: green; background: # f0f0f0; }
P {color: green; }
P {background: # f0f0f0; }

The first line for the selector P at the same time set the text color and background, and the second - at the beginning sets the color of text, and then background color. Since the selector specified one, but different properties, they will be applied simultaneously. Therefore, given the form record parameters lead to the same result.

If one of the selector attributes are defined the same, but with different values, it used to be the one specified in the code of the latter.

P {color: green}
P {color: red}

The line shows the change of the background color in the paragraph \u003cP\u003e . Initially set to green, and then red, which will be applied to text.

Any properties of CSS, as well as their values \u200b\u200bare not case sensitive, so they can gain both uppercase and lowercase characters. But while they have traditionally always written in small letters.

In the description of the syntax of the following applies:


No feedback yet.
In order to counter copyright infringement and property rights, we ask you to immediately inform us at support@plati.market the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)