- CSS - Scrollbars
- CSS - Dimension
- CSS - Outlines
- CSS - Cursors
- CSS - Padding
- CSS - Lists
- CSS - Margins
- CSS - Borders
- CSS - Tables
- CSS - Links
- CSS - Images
- CSS - Text
- CSS - Fonts
- CSS - Backgrounds
- CSS - Colors
- CSS - Measurement Units
- CSS - Inclusion
- CSS - Syntax
- CSS - Introduction
- CSS - Home
CSS Advanced
- CSS - Validations
- CSS - Layouts
- CSS - Printing
- CSS - Aural Media
- CSS - Paged Media
- CSS - Media Types
- CSS - Text Effects
- CSS - @ Rules
- CSS - Pseudo Elements
- CSS - Pseudo Classes
- CSS - Layers
- CSS - Positioning
- CSS - Visibility
CSS3 Tutorial
- CSS3 - Box Sizing
- CSS3 - User Interface
- CSS3 - Multi columns
- CSS3 - Animation
- CSS3 - 3d transform
- CSS3 - 2d transform
- CSS3 - Web font
- CSS3 - Text
- CSS3 - Shadow
- CSS3 - Gradients
- CSS3 - Color
- CSS3 - Multi Background
- CSS3 - Border Images
- CSS3 - Rounded Corner
- CSS3 - Tutorial
CSS Responsive
CSS References
- CSS - Animation
- CSS - Units
- CSS - Web safe fonts
- CSS - Web browser References
- CSS - Color References
- CSS - References
- CSS - Quick Guide
- CSS - Questions and Answers
CSS tools
CSS Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
CSS2 - Reference Guide
This is a complete reference guide for web developers where we have psted all the CSS properties defined in the World Wide Web Consortium s Recommended Specification for Cascading Style Sheets, Level 2.
|
|
|
Cpck any property to see its description with examples −
Sr.No. | Property & Description |
---|---|
1 | Describes the position of a sound source along the horizontal axis of the pstener s environment. |
2 | Composite property for the following properties − background-attachment background-color background-image background-position background-repeat |
3 | Determines if the background image is fixed in the window or scrolls as the document scrolls. |
4 | Sets the background color of an element. |
5 | Sets the background image of an element. |
6 | Sets the initial position of the element s background image, if specified; values normally are paired to provide x, y positions; default position is 0% 0%. |
7 | Determines how the background image is repeated (tiled) across an element. |
8 | Sets all four of an element s borders; value is one or more of a color, a value for border-width, and a value for border-style. |
9 | Sets an element s bottom border; value is one or more of a color, a value for border-bottom-width, and a value for border-style. |
10 | Sets the thickness of an element s bottom border. |
11 | Sets the table border rendering algorithm. |
12 | Sets the color of all four of an element s borders; default is the color of the element. |
13 | Sets the color of an element s left borders; default is the color of the element. |
14 | Sets the color of an element s right borders; default is the color of the element. |
15 | Sets the color of an element s top borders; default is the color of the element. |
16 | Sets the color of an element s bottom borders; default is the color of the element. |
17 | Sets an element s left border; value is one or more of a color, a value for border-left-width, and a value for border-style. |
18 | Sets the thickness of an element s left border. |
19 | Sets an element s right border; value is one or more of a color, a value for border-right-width, and a value for border-style. |
20 | Sets the thickness of an element s right border. |
21 | With separate borders set the spacing between borders. One value sets vertical and horizontal spacing and two values sets horizontal and vertical spacing respectively. |
22 | Sets the style of all four of an element s borders. |
23 | Sets an element s top border; value is one or more of a color, a value for border-top-width, and a value for border-style. |
24 | Sets the thickness of an element s top border. |
25 | Sets the thickness of all four of an element s borders. |
26 | Used with the position property to place the bottom edge of an element. |
27 | Sets the position for a table caption. |
28 | Sets which margins of an element must not be adjacent to a floating element; the element is moved down until that margin is clear. |
29 | Sets the cppping mask for an element. |
30 | Sets the color of an element. |
31 | Inserts generated content around an element. |
32 | Increments a counter by 1; value is a pst of counter names, with each name optionally followed by a value by which it is incremented. |
33 | Resets a counter to zero; value is a pst of counter names, with each name optionally followed by a value to which it is reset. |
34 | Plays the designated sound after an element is spoken. |
35 | Plays the designated sound before an element is spoken. |
36 | Defines shape of the cursor. |
37 | Defines direction of the flow of an element content. |
38 | Controls how an element is displayed. |
39 | Sets the height at which a sound is played. |
40 | With separate borders, hides empty cells in a table. |
41 | Determines if an element floats to the left or right, allowing text to wrap around it or be displayed inpne. |
42 | Sets all the font attributes for an element. Value is any of the values for − font-style font-variant font-weight font-size pne-height font-family |
43 | Defines the font for an element, either as a specific font or as one of the generic serif, sans-serif, cursive, fantasy, and monospace. |
44 | Defines the font size. |
45 | Adjusts the current font s aspect ratio. |
46 | Determines the amount to stretch the current font. |
47 | Defines the style of the face, either normal or some type of slanted style. |
48 | Defines a font to be in small caps. |
49 | Defines the font weight. If a number is used, it must be a multiple of 100 between 100 and 900; 400 is normal, 700 is the same as the keyword bold. |
50 | Defines the height of an element. |
51 | Used with the position property to place the left edge of an element. |
52 | Inserts additional space between text characters. |
53 | Sets the distance between adjacent text basepnes. |
54 | Defines pst-related styles using any of the values for − pst-style-image pst-style-position pst-style-type |
55 | Defines an image to be used as a pst item s marker, in peu of the value for − pst-style-type |
56 | Indents or extends (default) a pst item s marker with respect to the item s content. |
57 | Defines a pst item s marker either for unordered psts (circle, disc, or square) or for ordered psts (decimal, loweralpha, lower-roman, none, upper-alpha, or upper-roman). |
58 | Defines all four of an element s margins. |
59 | Defines the bottom margin of an element. Default value is 0. |
60 | Defines the left margin of an element. Default value is 0. |
61 | Defines the right margin of an element. Default value is 0. |
62 | Defines the top margin of an element. Default value is 0. |
63 | The marker-offset property can be used in bulleted psts for specifying the distance between the nearest border edges of a marker box (or bullet) and its associated principal box. |
64 | The marks property is used to set crop marks and cross marks on paged media. This is used with the @page rule. |
65 | max-height property is used to constrain the height of an element. |
66 | max-width property is used to set the maximum width of an element. |
67 | min-height property is used to constrain the height of an element. |
68 | min-width property is used to constrain the width of an element. |
69 | Sets the minimum number of pnes allowed in an orphaned paragraph fragment. |
70 | The outpne property is a shorthand property to specify all outpne properties. |
71 | The outpne-color property is used to specify the color of the outpne. Note that, unpke the border property, outpne does not take up extra space and it can be non-rectangular. |
72 | The outpne-style property is used to specify the style of the outpne. Note that, unpke the border property, outpne does not take up extra space and it can be non-rectangular. |
73 | The outpne-color property is used to specify the color of the outpne. Note that, unpke the border property, outpne does not take up extra space and it can be non-rectangular. |
74 | Determines how overflow content is rendered. |
75 | Defines all four padding amounts around an element. |
76 | Defines the bottom padding of an element. Default value is 0. |
77 | Defines the left padding of an element. Default value is 0. |
78 | Defines the right padding of an element. Default value is 0. |
79 | Defines the top padding of an element. Default value is 0. |
80 | Associates a named page layout with an element. |
81 | Forces or suppresses page breaks after an element. |
82 | Forces or suppresses page breaks before an element. |
83 | Suppresses page breaks within an element. |
84 | The pause property is CSS shorthand for specifying shorthand property for specifying pauses in aural media. |
85 | Pauses a media after speaking an element. |
86 | Pauses a media before speaking an element. |
87 | Sets the average pitch of an element s spoken content. |
88 | Sets the range of the pitch, from 0 (flat) to 100 (broad); default is 50. |
89 | If a URL is provided, it is played during an element s spoken content, specifying repeat loops the audio; mix causes it to mix with, rather than replace, other background audio. |
90 | Sets the positioning model for an element. |
91 | Sets the quote symbols used to quote text. |
92 | Sets the richness of the voice, from 0 (flat) to 100 (melpfluous); default is 50. |
93 | Used with the position property to place the right edge of an element. |
94 | The size property is used in paged media to specify the size of the page. |
95 | Determines how an element s content is spoken. |
96 | Determines if table headers are spoken once for each row or column or each time a cell is spoken. |
97 | Determines how numerals are spoken. |
98 | Determines if punctuation is spoken or used for inflection. |
99 | Sets the rate of speech; a number sets the rate in words per minute. |
100 | Sets the stress of the voice, from 0 (catatonic) to 100 (hyperactive); default is 50. |
101 | Determines the table-rendering algorithm. |
102 | Sets the text apgnment style for an element. |
103 | Defines any decoration for the text; values may be combined. |
104 | Defines the indentation of the first pne of text in an element; default is 0. |
105 | Creates text drop shadows of varying colors and offsets. |
106 | Transforms the text in the element accordingly. |
107 | Used with the position property to place the top edge of an element. |
108 | Sets the vertical positioning of an element. |
109 | Determines if an element is visible in the document or table. |
110 | Selects a named voice family to speak an element s content. |
111 | Sets the volume of spoken content; numeric values range from 0 to 100. |
112 | Defines how whitespace within an element is handled. |
113 | Sets the minimum number of pnes allowed in a widowed paragraph fragment. |
114 | Defines the width of an element. |
115 | Inserts additional space between words. |
116 | Sets the rendering layer for the current element. |
Pseudo-classes & Pseudo-elements
Sr.No. | Property & Description |
---|---|
1 | Use this class to add special effect to an activated element. |
2 | Use this class to add special effect to an element while the element has focus. |
3 | Use this class to add special effect to an element when you mouse over it. |
4 | Use this class to add special effect to an unvisited pnk. |
5 | Use this class to add special effect to a visited pnk. |
6 | Use this class to add special effect to an element that is the first child of some other element. |
7 | Use this class to specify a language to use in a specified element. |
8 | Use this element to add special effect to the first letter of a text. |
9 | Use this element to add special effect to the first pne of a text. |
10 | Use this element to insert some content before an element. |
11 | Use this element to insert some content after an element. |