Css properties
Upcoming SlideShare
Loading in...5
×
 

Css properties

on

  • 418 views

b

b

Statistics

Views

Total Views
418
Views on SlideShare
418
Embed Views
0

Actions

Likes
0
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Css properties Css properties Document Transcript

  • CSS Property ChartBackgroundProperty Description Valuesbackground A shorthand property for setting all background background-color properties in one declaration background-image background-repeat background- attachment background-positionbackground-attachment Sets whether a background image is fixed or scroll scrolls with the rest of the page fixedbackground-color Sets the background color of an element color-rgb color-hex color-name transparentbackground-image Sets an image as the background url(URL) nonebackground-position Sets the starting position of a background top left image top center top right center left center center center right bottom left bottom center bottom right x% y% xpos yposbackground-repeat Sets if/how a background image will be repeat repeated repeat-x repeat-y no-repeatBorderProperty Description Valuesborder A shorthand property for setting all of the border-width properties for the four borders in one border-style declaration border-colorborder-bottom A shorthand property for setting all of the border-bottom-width properties for the bottom border in one border-style declaration border-colorborder-bottom-color Sets the color of the bottom border border-colorborder-bottom-style Sets the style of the bottom border border-styleborder-bottom-width Sets the width of the bottom border thin medium thick lengthborder-color Sets the color of the four borders, can have color from one to four colors
  • border-left A shorthand property for setting all of the border-left-width properties for the left border in one border-style declaration border-colorborder-left-color Sets the color of the left border border-colorborder-left-style Sets the style of the left border border-styleborder-left-width Sets the width of the left border thin medium thick lengthborder-right A shorthand property for setting all of the border-right-width properties for the right border in one border-style declaration border-colorborder-right-color Sets the color of the right border border-colorborder-right-style Sets the style of the right border border-styleborder-right-width Sets the width of the right border thin medium thick lengthborder-style Sets the style of the four borders, can have none from one to four styles hidden dotted dashed solid double groove ridge inset outsetborder-top A shorthand property for setting all of the border-top-width properties for the top border in one border-style declaration border-colorborder-top-color Sets the color of the top border border-colorborder-top-style Sets the style of the top border border-styleborder-top-width Sets the width of the top border thin medium thick lengthborder-width A shorthand property for setting the width of thin the four borders in one declaration, can have medium from one to four values thick lengthClassificationProperty Description Valuesclear Sets the sides of an element where other left floating elements are not allowed right both none
  • cursor Specifies the type of cursor to be displayed url auto crosshair default pointer move e-resize ne-resize nw-resize n-resize se-resize sw-resize s-resize w-resize text wait helpdisplay Sets how/if an element is displayed none inline block list-item run-in compact marker table inline-table table-row-group table-header-group table-footer-group table-row table-column-group table-column table-cell table-captionfloat Sets where an image or a text will appear in left another element right noneposition Places an element in a static, relative, static absolute or fixed position relative absolute fixedvisibility Sets if an element should be visible or invisible visible hidden collapseDimensionProperty Description Valuesheight Sets the height of an element auto length %
  • line-height Sets the distance between lines normal number length %max-height Sets the maximum height of an element none length %max-width Sets the maximum width of an element none length %min-height Sets the minimum height of an element length %min-width Sets the minimum width of an element length %width Sets the width of an element auto % lengthFontProperty Description Valuesfont A shorthand property for setting all of the font-style properties for a font in one declaration font-variant font-weight font-size/line-height font-family caption icon menu message-box small-caption status-barfont-family A prioritized list of font family names and/or family-name generic family names for an element generic-familyfont-size Sets the size of a font xx-small x-small small medium large x-large xx-large smaller larger length %font-size-adjust Specifies an aspect value for an element that none will preserve the x-height of the first-choice number fontfont-stretch Condenses or expands the current font-family normal wider
  • narrower ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expandedfont-style Sets the style of the font normal italic obliquefont-variant Displays text in a small-caps font or a normal normal font small-capsfont-weight Sets the weight of a font normal bold bolder lighter 100 200 300 400 500 600 700 800 900Generated ContentProperty Description Valuescontent Generates content in a document. Used with string the :before and :after pseudo-elements url counter(name) counter(name, list-style-type) counters(name, string) counters(name, string, list-style- type) attr(X) open-quote close-quote no-open-quote no-close-quotecounter-increment Sets how much the counter increments on each none occurrence of a selector identifier numbercounter-reset Sets the value the counter is set to on each none occurrence of a selector identifier numberquotes Sets the type of quotation marks none string string
  • List and MarkerProperty Description Valueslist-style A shorthand property for setting all of the list-style-type properties for a list in one declaration list-style-position list-style-imagelist-style-image Sets an image as the list-item marker none urllist-style-position Sets where the list-item marker is placed in the inside list outsidelist-style-type Sets the type of the list-item marker none disc circle square decimal decimal-leading-zero lower-roman upper-roman lower-alpha upper-alpha lower-greek lower-latin upper-latin hebrew armenian georgian cjk-ideographic hiragana katakana hiragana-iroha katakana-irohamarker-offset auto lengthMarginProperty Description Valuesmargin A shorthand property for setting the margin margin-top properties in one declaration margin-right margin-bottom margin-leftmargin-bottom Sets the bottom margin of an element auto length %margin-left Sets the left margin of an element auto length %margin-right Sets the right margin of an element auto
  • length %margin-top Sets the top margin of an element auto length %OutlinesProperty Description Valuesoutline A shorthand property for setting all the outline outline-color properties in one declaration outline-style outline-widthoutline-color Sets the color of the outline around an element color invertoutline-style Sets the style of the outline around an element none dotted dashed solid double groove ridge inset outsetoutline-width Sets the width of the outline around an thin element medium thick lengthPaddingProperty Description Valuespadding A shorthand property for setting all of the padding-top padding properties in one declaration padding-right padding-bottom padding-leftpadding-bottom Sets the bottom padding of an element length %padding-left Sets the left padding of an element length %padding-right Sets the right padding of an element length %padding-top Sets the top padding of an element length %
  • PositioningProperty Description Valuesbottom Sets how far the bottom edge of an element is auto above/below the bottom edge of the parent % element lengthclip Sets the shape of an element. The element is shape clipped into this shape, and displayed autoleft Sets how far the left edge of an element is to auto the right/left of the left edge of the parent % element lengthoverflow Sets what happens if the content of an element visible overflow its area hidden scroll autoposition Places an element in a static, relative, static absolute or fixed position relative absolute fixedright Sets how far the right edge of an element is to auto the left/right of the right edge of the parent % element lengthtop Sets how far the top edge of an element is auto above/below the top edge of the parent % element lengthvertical-align Sets the vertical alignment of an element baseline sub super top text-top middle bottom text-bottom length %z-index Sets the stack order of an element auto numberTableProperty Description Valuesborder-collapse Sets whether the table borders are collapsed collapse into a single border or detached as in standard separate HTMLborder-spacing Sets the distance that separates cell borders length length (only for the "separated borders" model)caption-side Sets the position of the table caption top
  • bottom left rightempty-cells Sets whether or not to show empty cells in a show table (only for the "separated borders" model) hidetable-layout Sets the algorithm used to display the table auto cells, rows, and columns fixedTextProperty Description Valuescolor Sets the color of a text colordirection Sets the text direction ltr rtlline-height Sets the distance between lines normal number length %letter-spacing Increase or decrease the space between normal characters lengthtext-align Aligns the text in an element left right center justifytext-decoration Adds decoration to text none underline overline line-through blinktext-indent Indents the first line of text in an element length %text-shadow none color lengthtext-transform Controls the letters in an element none capitalize uppercase lowercaseunicode-bidi normal embed bidi-overridewhite-space Sets how white space inside an element is normal handled pre nowrapword-spacing Increase or decrease the space between words normal length
  • Pseudo-classesPseudo-class Purpose:active Adds special style to an activated element:focus Adds special style to an element while the element has focus:hover Adds special style to an element when you mouse over it:link Adds special style to an unvisited link:visited Adds special style to a visited link:first-child Adds special style to an element that is the first child of some other element:lang Allows the author to specify a language to use in a specified elementPseudo-elementsPseudo-element Purpose:first-letter Adds special style to the first letter of a text:first-line Adds special style to the first line of a text:before Inserts some content before an element:after Inserts some content after an element