Common CSS Properties

Source: Internet
Author: User

Font properties: (font)

  size font-size: x-large; (very large) xx-small; (very Small) General Chinese can not be used, as long as the value is possible, units: PX, PD

 style font-style: oblique; (oblique body) italic; (italic) normal; (normal)

  line height line-height: normal, (normal) unit: PX, PD, EM

  thickness font-weight: bold; (bold) lighter; (fine body) normal; (normal)

  Variant font-variant: small-caps; (small Capital Letter) normal; (normal)

  case text-transform: capitalize; (capital letter) uppercase; (uppercase) lowercase; (lowercase) none; (none)

  modifier text-decoration: underline; (underline) overline; (dash) line-through; (strikethrough) blink; (flashing)

 Common Fonts: (font-family)

"Courier new", Courier, monospace, "times New Roman", times, serif, Arial, Helvetica, sans-serif, Verdana

 Background Properties: (background)

  Color background-color: #FFFFFF;

  image background-image: URL ();

  repeat background-repeat: no-repeat;

  rolling background-attachment: fixed; (fixed) scroll; (scrolling)

  position background-position: left (horizontal) top (vertical);

  Shorthand method background:#000 URL (..) Repeat fixed left top;

 Block Attribute: (block)

  word spacing letter-spacing: normal; Numerical

  align Text-align: justify; (justify) left; (aligned) right; center; (center)

 indent text-indent: value px;

  Vertical Alignment vertical-align: baseline; (baseline) sub; (subscript) super; (subscript) top; text-top; middle; Bottom text-bottom;

  word spacing word-spacing: normal; Numerical

  space white-space: pre; (reserved) nowrap; (no line Break)

  show display:block, (block) inline, (inline) list-item; (list item) run-in; (append) compact; (compact) marker; (mark) table; inline-table; table-raw-group; table-header-group; table-footer-group; table-raw; table-column-group; table-column; table-cell; table-caption; (table Title)

  Box Properties: (box)

width:; height:; float:; clear:both; margin:; padding:; Order: Upper right Down left

  Border Properties: (Border)

 border-style: dotted; (dot line) dashed; (dashed) solid; double, (two lines) groove, (groove line) ridge; (ridge) inset; (sag) outset;

 border-width:; Border width

  border-color:#;

 Shorthand method Border:width Style color;

  List Properties: (list-style)

  type list-style-type:disc; circle circle; (circle) square; (square) decimal; (number) lower-roman; (small code number) upper-roman; lower-alpha; upper-alpha;

  location list-style-position: outside; (outside) inside;

  image list-style-image: URL (..);

 Positioning Properties: (Position)

  Position: absolute; Relative Static

 visibility: inherit; Visible Hidden

  overflow: visible; Hidden Scroll Auto

  clip: rect (12px,auto,12px,auto) (cut)

Https://leohxj.gitbooks.io/front-end-database/content/html-and-css-basic/common-use-css-property.html



This article from "it Technology learning and communication" blog, declined reprint!

Common CSS Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.