| CSS Attribute |
Description |
| /*Comment*/ |
CSS Comment |
| @import |
Import external style sheets |
| @charset |
Declares Character encoding |
| @media |
Declares different styles for different media. Will support either “All” or “Screen” and ignore others |
| @namespace |
Enables usage of namespaces |
| @font-face |
Allows for linking to fonts |
| * |
Selects all elements |
| E |
Matches any E element (div, span, p) |
| E.class |
Class selector |
| E#id |
ID selector |
| E:link |
Link selector (not yet visited) |
| E:visited |
Link selector (visited) |
| E:active |
Matches E when active by user action |
| E:hover |
Matches E when hover by user action |
| E:focus |
Matches E when focus by user action |
| margin |
Sets margin properties |
| padding |
Sets padding properties |
| width |
Sets width of an element |
| height |
Sets height of an element |
| float |
Specifies if a box should float on the side |
| clear |
Specifies which side of an element where other floating elements are not allowed |
| display |
Specifies the type of box an element should generate |
| min-width |
Sets minimum width of an element |
| max-width |
Sets maximum width of an element |
| min-height |
Sets minimum height of an element |
| max-height |
Sets maximum height of an element |
| clip |
Clips an absolutely positioned element |
| overflow |
Specifies what happens if content overflows an element box |
| visibility |
Specifies whether or not an element is visible |
| overflow-x |
Forces horizontal scroll bars on overflow |
| overflow-y |
Forces vertical scroll bars on overflow |
| border-radius |
Sets the radius for rounded corner in borders |
| border |
Sets all the border properties in one declaration |
| border-bottom |
Sets all the bottom border properties in one declaration |
| border-bottom-color |
Sets the color of the bottom border |
| border-bottom-style |
Sets the style of the bottom border |
| border-bottom-width |
Sets the width of the bottom border |
| border-color |
Sets the color of the four borders |
| border-left |
Sets all the left border properties in one declaration |
| border-left-color |
Sets the color of the left border |
| border-left-style |
Sets the style of the left border |
| border-left-width |
Sets the width of the left border |
| border-right |
Sets all the right border properties in one declaration |
| border-right-color |
Sets the color of the right border |
| border-right-style |
Sets the style of the right border |
| border-right-width |
Sets the width of the right border |
| border-style |
Sets the style of the four borders |
| border-top |
Sets all the top border properties in one declaration |
| border-top-color |
Sets the color of the top border |
| border-top-style |
Sets the style of the top border |
| border-top-width |
Sets the width of the top border |
| border-width |
Sets the width of the four borders |
| background-clip |
Specifies whether an element’s background, either the color or image, extends underneath its border |
| background-origin |
Determines the background positioning area |
| background-size |
Specifies the size of the background images |
| font |
Sets all font properties |
| font-family |
Allows for a prioritized list of font family names and/or generic family names to be specified for the selected element |
| font-size |
Specifies the size of the font |
| font-style |
Allows font style (italic or oblique) to be selected within a font-family |
| font-variant |
Selects a normal, or small-caps face from a font family |
| font-weight |
Specifies the weight or boldness of the font |
| text-align |
Specifices the horizontal alignment of text |
| text-decoration |
Specifies the decoration to be added to the text |
| text-indent |
Specifies the indentation of the first line in a text block |
| text-transform |
Controls the capitalization of the text |
| letter-spacing |
Increases or decreases the space between characters in a text |
| word-spacing |
Increases or decreases the space between words in a text |
| white-space |
Specifies how white space inside an element is handled |
| text-shadow |
Specifies the shadow effect added to text |
| text-overflow |
Specifies whether an ellipsis displays when text content has overflowed its given layout area |
| word-wrap |
Specifies whether or not the browser is allowed to break lines within words in order to prevent overflow when an otherwise unbreakable string is too long to fit |
| direction |
Sets the base text direction and block-level elements and the direction that cells flow within a table row |
| border-collapse |
Selects the border model |
| border-spacing |
Specifies the distance between the borders of adjacent cells |
| caption-side |
Positions the the content of table-caption at the specified side |
| empty-cells |
Specifies how to render borders and backgrounds around cells that have no visible content. |
| table-layout |
Defines the algorithm to be used to layout the table cells, rows and columns |
| outline |
Sets the outline properties |
| outline-color |
Sets the color of an outline |
| outline-style |
Sets the style of an outline |
| outline-width |
Sets the width of an outline |
| outline-offset |
Sets the space between an outline and the edge or border of an element |
| width |
Specifies the width of the content area of an element |
| height |
Specifies the height of the content area of an element |
| device-width |
The width of the screen in CSS pixels at zoom factor 1.0 |
| device-height |
The height of the screen in CSS pixels at zoom factor 1.0 |
| device-aspect-ratio |
Describes the aspect ratio of the output device |
| color |
Sets the color of text |
| color-index |
Describes the number of entries in the color lookup table of the output device |
| monochrome |
Describes the number of bits per pixel in a monochrome frame buffer |
| border |
Sets all the border properties in one declaration |
| border-bottom |
Sets all the bottom border properties in one declaration |
| border-bottom-color |
Sets the color of the bottom border |
| border-bottom-style |
Sets the style of the bottom border |
| border-bottom-width |
Sets the width of the bottom border |
| border-color |
Sets the color of the four borders |
| border-left |
Sets all the left border properties in one declaration |
| border-left-color |
Sets the color of the left border |
| border-left-style |
Sets the style of the left border |
| border-left-width |
Sets the width of the left border |
| border-right |
Sets all the right border properties in one declaration |
| border-right-color |
Sets the color of the right border |
| border-right-style |
Sets the style of the right border |
| border-right-width |
Sets the width of the right border |
| border-style |
Sets the style of the four borders |
| border-top |
Sets all the top border properties in one declaration |
| border-top-color |
Sets the color of the top border |
| border-top-style |
Sets the style of the top border |
| border-top-width |
Sets the width of the top border |
| border-width |
Sets the width of the four borders |