Common HTML and CSS code

Source: Internet
Author: User
  1. ======= Common htmlCode========
  2. ------ Alignment of image and text ------
  3. # = Top, middle, and bottom.
  4. ------ Alignment/layout of images on the page -------
  5. # = left, right, right. The text is shown below the image. the distance between vspace and hspace is indicated.
  6. ------ Table, table meta across multiple columns ----------
  7. <TD colspan =##= the number of columns across multiple rows: <TH rowspan =###= the number of rows.
  8. ------- Table title ---------------
  9. <Caption align =#> content </caption> # = left, center, right.
  10. <Aption valign =#> content </caption> # = top, bottom, indicating that the title is in the table.
  11. -------- Background music -------------
  12. <Bgsound src = "168.mid" loop =" 5 "> # = URL of the wav file. # = Enter a number. If-1 is entered, the video is played continuously.
  13. --------- Text that will be moved ------------
  14. Direction: Direction ##= left, right. <Marquee direction = left> shift right to left </marquee>, <marquee direction = right> shift left to right </marquee>.
  15. Method: bihavior ##= scroll, slide, and alternate. <Marquee behavior = scroll> walk around in a circle </marquee>, <marquee behavior = slide> just take one stop </marquee>, <marquee behavior = alternate> let's go back and forth </marquee>.
  16. Color background, move the mouse over the text to stop: <marquee bgcolor = aaaaee> La la, I will move it! </Marquee>
  17. Blank: hspace = # vspace ##= number. Demonstration: <marquee hspace = 20 vspace = 20 width = 150 bgcolor = ffaaaa align = center> La la, I will move it! </Marquee> hello!
  18. =========== Common CSS code ================
  19. Font color: Color: # 00903a;
  20. Background Color: Background-color: #7cffe7;
  21. --------------------------------------------------------------------------------
  22. Border Width: border-width: 5px;
  23. Top width: border-top-width: 5px;
  24. Left width: border-left-width: 5px;
  25. Right width: border-right-width: 5px;
  26. Bottom Side width: border-bottom-width: 5px;
  27. --------------------------------------------------------------------------------
  28. Border color: border-color: #000ff4;
  29. Top color: border-top-color: #10ff01;
  30. Left color: border-left-color: # ff3b04;
  31. Right color: border-right-color: # ff3cf3;
  32. Background Color: border-bottom-color: #00d0c3;
  33. --------------------------------------------------------------------------------
  34. Border style: border-style: Double; replaceable dashed; dotted; none;
  35. Top style: border-top-style: solid;
  36. Left style: border-left-style: inset;
  37. Style on the right: border-right-style: Ridge;
  38. Bottom Side style: border-bottom-style: solid;
  39. --------------------------------------------------------------------------------
  40. Overall width: 5px;
  41. Overall height: Height: 5px;
  42. Overflow options: overflow: visible; can replace hidden; scroll; Auto;
  43. --------------------------------------------------------------------------------
  44. Inner margin: padding: 5px;
  45. Top padding: padding-top: 5px;
  46. Left padding: padding-left: 5px;
  47. Right padding: padding-Right: 5px;
  48. Bottom padding: padding-bottom: 5px;
  49. --------------------------------------------------------------------------------
  50. Outer margin: 5px;
  51. Top margin: margin-top: 5px;
  52. Left margin: margin-left: 5px;
  53. Right margin: margin-Right: 5px;
  54. Bottom margin: margin-bottom: 5px;
  55. --------------------------------------------------------------------------------
  56. Text font: font-family: fantasy;
  57. Text Size: font-size: 12pt;
  58. Text width: font-weight: bold;
  59. Font-Weight Values: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 |
  60. Text style: font-style: italic;
  61. Text variable: Line-Height: 110%;
  62. --------------------------------------------------------------------------------
  63. Clear attribute: clear: Left; can replace right; both; none;
  64. Floating property: float: Left; can replace right; none;
  65. Horizontal arrangement: Text-align: Left; can replace right; center; justify;
  66. Text modifier: Text-Decoration: underline; overline can be replaced; Underline overline; line-through; blink;
  67. Text indent: Text-indent: 5em;
  68. Text Spacing: letter-Spacing: 5px;
  69. Letter Spacing: Word-Spacing: 5px;
  70. Text conversion: Text-transform: Capitalize; replace lowercase; uppercase;
  71. Vertical arrangement: vertical-align: baseline; top; middle; bottom; text-top; text-bottom; Super; sub; 3em; 30%;
  72. --------------------------------------------------------------------------------
  73. Background Image: Background-image: url(tianyi.gif );
  74. Background stretch: Background-repeat: Repeat; replace repeat-X; repeat-y; no-Repeat;
  75. Background positioning: Background-position: Left; can be replaced by right; top; left top; right bottom; 30% 50%;
  76. Additional attributes: Background-Attachment: fixed; scroll can be replaced;
  77. --------------------------------------------------------------------------------
  78. Display attribute: Display: none; replaceable block; inline; run-in; compact; List-item; marker;
  79. Visible: visibility: visible; can be replaced by hidden;
  80. Resource positioning: Position: static; can replace relative; absolute; fixed;
  81. Distance from top: Top: 5px;
  82. Left: 5px;
  83. Right: 5px;
  84. Bottom edge: Bottom: 5px;
  85. Priority: Z-index: 5;
  86. Mouse pointer: cursor: crosshair; can replace default; pointer; move; text; wait; help; n-resize; s-resize; W-resize; e-resize; ne-resize; NW-resize; se-resize; Sw-resize;
Related Article

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.