Sunteți pe pagina 1din 9

1|Page

CSS Reference
Animation Properties
Property @keyframes animation animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-play-state Description Specifies the animation A shorthand property for all the animation properties below, except the animation-play-state property Specifies a name for the @keyframes animation Specifies how many seconds or milliseconds an animation takes to complete one cycle Specifies the speed curve of the animation Specifies when the animation will start Specifies the number of times an animation should be played Specifies whether or not the animation should play in reverse on alternate cycles Specifies whether the animation is running or paused CSS 3 3 3 3 3 3 3 3 3

Background Properties
Property background background-attachment background-color background-image background-position background-repeat background-clip background-origin background-size Description Sets all the background properties in one declaration Sets whether a background image is fixed or scrolls with the rest of the page Sets the background color of an element Sets the background image for an element Sets the starting position of a background image Sets how a background image will be repeated Specifies the painting area of the background Specifies the positioning area of the background images Specifies the size of the background images CSS 1 1 1 1 1 1 3 3 3

Border and Outline Properties


Property border border-bottom border-bottom-color border-bottom-style border-bottom-width border-color border-left border-left-color border-left-style border-left-width border-right border-right-color border-right-style border-right-width border-style border-top border-top-color border-top-style Description Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets Sets all the border properties in one declaration all the bottom border properties in one declaration the color of the bottom border the style of the bottom border the width of the bottom border the color of the four borders all the left border properties in one declaration the color of the left border the style of the left border the width of the left border all the right border properties in one declaration the color of the right border the style of the right border the width of the right border the style of the four borders all the top border properties in one declaration the color of the top border the style of the top border CSS 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

rolvinss@gmail.com

2|Page
border-top-width border-width outline outline-color outline-style outline-width border-bottom-left-radius border-bottom-right-radius border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-radius border-top-left-radius border-top-right-radius box-decoration-break box-shadow Sets the width of the top border Sets the width of the four borders Sets all the outline properties in one declaration Sets the color of an outline Sets the style of an outline Sets the width of an outline Defines the shape of the border of the bottom-left corner Defines the shape of the border of the bottom-right corner A shorthand property for setting all the border-image-* properties Specifies the amount by which the border image area extends beyond the border box Specifies whether the image-border should be repeated, rounded or stretched Specifies the inward offsets of the image-border Specifies an image to be used as a border Specifies the widths of the image-border A shorthand property for setting all the four border-*-radius properties Defines the shape of the border of the top-left corner Defines the shape of the border of the top-right corner Attaches one or more drop-shadows to the box 1 1 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3

Box Properties
Property overflow-x overflow-y overflow-style rotation rotation-point Description Specifies whether or not to clip the left/right edges of the content, if it overflows the element's content area Specifies whether or not to clip the top/bottom edges of the content, if it overflows the element's content area Specifies the preferred scrolling method for elements that overflow Rotates an element around a given point defined by the rotation-point property Defines a point as an offset from the top left border edge CSS 3 3 3 3 3

Color Properties
Property color-profile opacity rendering-intent Description Permits the specification of a source color profile other than the default Sets the opacity level for an element Permits the specification of a color profile rendering intent other than the default CSS 3 3 3

Content for Paged Media Properties


Property bookmark-label bookmark-level bookmark-target float-offset hyphenate-after hyphenate-before hyphenate-character Description Specifies the label of the bookmark Specifies the level of the bookmark Specifies the target of the bookmark link Pushes floated elements in the opposite direction of the where they have been floated with float Specifies the minimum number of characters in a hyphenated word after the hyphenation character Specifies the minimum number of characters in a hyphenated word before the hyphenation character Specifies a string that is shown when a hyphenate-break occurs CSS 3 3 3 3 3 3 3

rolvinss@gmail.com

3|Page
hyphenate-lines hyphenate-resource hyphens image-resolution marks string-set Indicates the maximum number of successive hyphenated lines in an element Specifies a comma-separated list of external resources that can help the browser determine hyphenation points Sets how to split words to improve the layout of paragraphs Specifies the correct resolution of images Adds crop and/or cross marks to the document 3 3 3 3 3 3

Dimension Properties
Property height max-height max-width min-height min-width width Description Sets Sets Sets Sets Sets Sets the the the the the the height of an element maximum height of an element maximum width of an element minimum height of an element minimum width of an element width of an element CSS 1 2 2 2 2 1

Flexible Box Properties


Property box-align box-direction box-flex box-flex-group box-lines box-ordinal-group box-orient box-pack Description Specifies how to align the child elements of a box Specifies in which direction the children of a box are displayed Specifies whether the children of a box is flexible or inflexible in size Assigns flexible elements to flex groups Specifies whether columns will go onto a new line whenever it runs out of space in the parent box Specifies the display order of the child elements of a box Specifies whether the children of a box should be laid out horizontally or vertically Specifies the horizontal position in horizontal boxes and the vertical position in vertical boxes CSS 3 3 3 3 3 3 3 3

Font Properties
Property font font-family font-size font-style font-variant font-weight @font-face font-size-adjust font-stretch Description Sets all the font properties in one declaration Specifies the font family for text Specifies the font size of text Specifies the font style for text Specifies whether or not a text should be displayed in a small-caps font Specifies the weight of a font A rule that allows websites to download and use fonts other than the "websafe" fonts Preserves the readability of text when font fallback occurs Selects a normal, condensed, or expanded face from a font family CSS 1 1 1 1 1 1 3 3 3

Generated Content Properties


Property content counter-increment counter-reset Description Used with the :before and :after pseudo-elements, to insert generated content Increments one or more counters Creates or resets one or more counters CSS 2 2 2

rolvinss@gmail.com

4|Page
quotes crop move-to page-policy Sets the type of quotation marks for embedded quotations Allows a replaced element to be just a rectangular area of an object, instead of the whole object Causes an element to be removed from the flow and reinserted at a later point in the document Determines which page-based occurance of a given element is applied to a counter or string value 2 3 3 3

Grid Properties
Property grid-columns grid-rows Description Specifies the width of each column in a grid Specifies the height of each column in a grid CSS 3 3

Hyperlink Properties
Property target target-name target-new target-position Description A shorthand property for setting the target-name, target-new, and target-position properties Specifies where to open links (target destination) Specifies whether new destination links should open in a new window or in a new tab of an existing window Specifies where new destination links should be placed CSS 3 3 3 3

Linebox Properties
Property alignment-adjust alignment-baseline baseline-shift dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-beforeadjust drop-initial-before-align drop-initial-size drop-initial-value inline-box-align line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy Description Allows more precise alignment of elements Specifies how an inline-level element is aligned with respect to its parent Allows repositioning of the dominant-baseline relative to the dominant-baseline Specifies a scaled-baseline-table Sets the alignment point of the drop initial for the primary connection point Sets which alignment line within the initial line box is used at the primary connection point with the initial letter box Sets the alignment point of the drop initial for the secondary connection point Sets which alignment line within the initial line box is used at the secondary connection point with the initial letter box Controls the partial sinking of the initial letter Activates a drop-initial effect Sets which line of a multi-line inline block align with the previous and next inline elements within a line A shorthand property for setting the line-stacking-strategy, line-stacking-ruby, and line-stacking-shift properties Sets the line stacking method for block elements containing ruby annotation elements Sets the line stacking method for block elements containing elements with baseshift Sets the line stacking strategy for stacked line boxes within a containing block element CSS 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3

rolvinss@gmail.com

5|Page
text-height Sets the block-progression dimension of the text content area of an inline box 3

List Properties
Property list-style list-style-image list-style-position list-style-type Description Sets all the properties for a list in one declaration Specifies an image as the list-item marker Specifies if the list-item markers should appear inside or outside the content flow Specifies the type of list-item marker CSS 1 1 1 1

Margin Properties
Property margin margin-bottom margin-left margin-right margin-top Description Sets Sets Sets Sets Sets all the margin properties in one declaration the bottom margin of an element the left margin of an element the right margin of an element the top margin of an element CSS 1 1 1 1 1

Marquee Properties
Property marquee-direction marquee-play-count marquee-speed marquee-style Description Sets Sets Sets Sets the direction of the moving content how many times the content move how fast the content scrolls the style of the moving content CSS 3 3 3 3

Multi-column Properties
Property column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns Description Specifies the number of columns an element should be divided into Specifies how to fill columns Specifies the gap between the columns A shorthand property for setting all the column-rule-* properties Specifies the color of the rule between columns Specifies the style of the rule between columns Specifies the width of the rule between columns Specifies how many columns an element should span across Specifies the width of the columns A shorthand property for setting column-width and column-count CSS 3 3 3 3 3 3 3 3 3 3

Padding Properties
Property padding padding-bottom padding-left padding-right padding-top Description Sets Sets Sets Sets Sets all the padding properties in one declaration the bottom padding of an element the left padding of an element the right padding of an element the top padding of an element CSS 1 1 1 1 1

Paged Media Properties


rolvinss@gmail.com

6|Page
Property fit fit-position image-orientation page size Description Gives a hint for how to scale a replaced element if neither its width nor its height property is auto Determines the alignment of the object inside the box Specifies a rotation in the right or clockwise direction that a user agent applies to an image Specifies a particular type of page where an element SHOULD be displayed Specifies the size and orientation of the containing box for page content CSS 3 3 3 3 3

Positioning Properties
Property bottom clear clip cursor display float left overflow position right top visibility z-index Description Specifies the bottom position of a positioned element Specifies which sides of an element where other floating elements are not allowed Clips an absolutely positioned element Specifies the type of cursor to be displayed Specifies how a certain HTML element should be displayed Specifies whether or not a box should float Specifies the left position of a positioned element Specifies what happens if content overflows an element's box Specifies the type of positioning method used for an element (static, relative, absolute or fixed) Specifies the right position of a positioned element Specifies the top position of a positioned element Specifies whether or not an element is visible Sets the stack order of a positioned element CSS 2 1 2 2 1 1 2 2 2 2 2 2 2

Print Properties
Property orphans page-break-after page-break-before page-break-inside widows Description Sets the minimum number of lines that must be left at the bottom of a page when a page break occurs inside an element Sets the page-breaking behavior after an element Sets the page-breaking behavior before an element Sets the page-breaking behavior inside an element Sets the minimum number of lines that must be left at the top of a page when a page break occurs inside an element CSS 2 2 2 2 2

Ruby Properties
Property ruby-align ruby-overhang ruby-position ruby-span Description Controls the text alignment of the ruby text and ruby base contents relative to each other Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base Controls the position of the ruby text with respect to its base Controls the spanning behavior of annotation elements CSS 3 3 3 3

Speech Properties
Property mark Description A shorthand property for setting the mark-before and mark-after properties CSS 3

rolvinss@gmail.com

7|Page
mark-after mark-before phonemes rest rest-after rest-before voice-balance voice-duration voice-pitch voice-pitch-range voice-rate voice-stress voice-volume Allows named markers to be attached to the audio stream Allows named markers to be attached to the audio stream Specifies a phonetic pronunciation for the text contained by the corresponding element A shorthand property for setting the rest-before and rest-after properties Specifies a rest or prosodic boundary to be observed after speaking an element's content Specifies a rest or prosodic boundary to be observed before speaking an element's content Specifies the balance between left and right channels Specifies how long it should take to render the selected element's content Specifies the average pitch (a frequency) of the speaking voice Specifies variation in average pitch Controls the speaking rate Indicates the strength of emphasis to be applied Refers to the amplitude of the waveform output by the speech synthesises 3 3 3 3 3 3 3 3 3 3 3 3 3

rolvinss@gmail.com

8|Page

Table Properties
Property border-collapse border-spacing caption-side empty-cells table-layout Description Specifies whether or not table borders should be collapsed Specifies the distance between the borders of adjacent cells Specifies the placement of a table caption Specifies whether or not to display borders and background on empty cells in a table Sets the layout algorithm to be used for a table CSS 2 2 2 2 2

Text Properties
Property color direction letter-spacing line-height text-align text-decoration text-indent text-transform unicode-bidi vertical-align white-space word-spacing hanging-punctuation punctuation-trim text-align-last text-justify text-outline text-overflow text-shadow text-wrap word-break word-wrap Description Sets the color of text Specifies the text direction/writing direction Increases or decreases the space between characters in a text Sets the line height Specifies the horizontal alignment of text Specifies the decoration added to text Specifies the indentation of the first line in a text-block Controls the capitalization of text Sets the vertical alignment of an element Specifies how white-space inside an element is handled Increases or decreases the space between words in a text Specifies whether a punctuation character may be placed outside the line box Specifies whether a punctuation character should be trimmed Describes how the last line of a block or a line right before a forced line break is aligned when text-align is "justify" Specifies the justification method used when text-align is "justify" Specifies a text outline Specifies what should happen when text overflows the containing element Adds shadow to text Specifies line breaking rules for text Specifies line breaking rules for non-CJK scripts Allows long, unbreakable words to be broken and wrap to the next line CSS 1 2 1 1 1 1 1 1 2 1 1 1 3 3 3 3 3 3 3 3 3 3

2D/3D Transform Properties


Property transform transform-origin transform-style perspective perspective-origin backface-visibility Description Applies a 2D or 3D transformation to an element Allows you to change the position on transformed elements Specifies how nested elements are rendered in 3D space Specifies the perspective on how 3D elements are viewed Specifies the bottom position of 3D elements Defines whether or not an element should be visible when not facing the screen CSS 3 3 3 3 3 3

Transition Properties
Property transition Description A shorthand property for setting the four transition properties CSS 3

rolvinss@gmail.com

9|Page
transition-property transition-duration transition-timing-function transition-delay Specifies the name of the CSS property the transition effect is for Specifies how many seconds or milliseconds a transition effect takes to complete Specifies the speed curve of the transition effect Specifies when the transition effect will start 3 3 3 3

User-interface Properties
Property appearance box-sizing icon nav-down nav-index nav-left nav-right nav-up outline-offset resize Description Allows you to make an element look like a standard user interface element Allows you to define certain elements to fit an area in a certain way Provides the author the ability to style an element with an iconic equivalent Specifies where to navigate when using the arrow-down navigation key Specifies the tabbing order for an element Specifies where to navigate when using the arrow-left navigation key Specifies where to navigate when using the arrow-right navigation key Specifies where to navigate when using the arrow-up navigation key Offsets an outline, and draws it beyond the border edge Specifies whether or not an element is resizable by the user CSS 3 3 3 3 3 3 3 3 3 3

rolvinss@gmail.com

S-ar putea să vă placă și