Css 3.0 |
Structure and Formatting of a CSS Rule
Most important rule of css - The structure and rules of Cascading Style Sheets, including an introduction to the various ... The above example has created two classes, css and html for use with HTML's CODE element.
Property Lists
Some properties can take multiple values, collectively known as a property list.
This topic is Describe with Example completely Follow this link Tutorialpoints.in.
When you group CSS selectors, you apply the same styles to several different elements without repeating the styles in your style sheet. Use a comma to separate multiple grouped selectors.
So the blue color applies to all <div> elements and all <p> elements. Without the comma only <p> elements that are a child of a <div> would be red.
This also applies to all types of selectors.
This rule applies to:
Some properties can take multiple values, collectively known as a property list.
/* Two VALUES in THIS property LIST */
span {
text-shadow: yellow 0 0 3px, green 4px 4px 10px;
}
/* Alternate Formatting */
span {
text-shadow:
yellow 0 0 3px, green 4px 4px 10px;
}
This topic is Describe with Example completely Follow this link Tutorialpoints.in.
Multiple Selectors
When you group CSS selectors, you apply the same styles to several different elements without repeating the styles in your style sheet. Use a comma to separate multiple grouped selectors.
div, p { color: blue }
So the blue color applies to all <div> elements and all <p> elements. Without the comma only <p> elements that are a child of a <div> would be red.
This also applies to all types of selectors.
p, .blue, #first, div span{ color : blue }
This rule applies to:
- <p>
- elements of the blue class
- element with the ID first every
- <span> inside of a <div>
Rules, Selectors, and Declaration Blocks
A CSS rule consists of a selector (e.g. h1) and declaration block ({}).h1 {}
0 Comments
Please do not share spam link.