home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 Spring / INTERNET101.ISO / pc / software / windows / building / stylemaster3 / installsm3demo.exe / _SETUP.1 / HTML4typical.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-12-10  |  3.6 KB  |  183 lines

  1. /* Status of this document
  2.  
  3. This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web.  */
  4.  
  5. /* Copyright © World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. */
  6.  
  7. /* http://www.w3.org/TR/1998/REC-CSS2-19980512 */
  8.  
  9. /* This style sheet describes the typical formatting of all HTML 4.0 ([HTML40]) elements based on extensive research into current UA practice. Developers are encouraged to use it as a default style sheet in their implementations.  */
  10.  
  11. ADDRESS, BLOCKQUOTE, BODY, DD, DIV, DL, DT, FIELDSET, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, IFRAME, NOFRAMES, OBJECT, OL, P, UL, APPLET, CENTER, DIR, HR, MENU, PRE
  12. {display: block}
  13.  
  14. LI
  15. {display: list-item}
  16.  
  17. HEAD
  18. {display: none}
  19.  
  20. TABLE
  21. {display: table}
  22.  
  23. TR
  24. {display: table-row}
  25.  
  26. THEAD
  27. {display: table-header-group}
  28.  
  29. TBODY
  30. {display: table-row-group}
  31.  
  32. TFOOT
  33. {display: table-footer-group}
  34.  
  35. COL
  36. {display: table-column}
  37.  
  38. COLGROUP
  39. {display: table-column-group}
  40.  
  41. TD, TH
  42. {display: table-cell}
  43.  
  44. CAPTION
  45. {display: table-caption}
  46.  
  47. TH
  48. {font-weight: bolder;
  49. text-align: center}
  50.  
  51. CAPTION
  52. {text-align: center}
  53.  
  54. BODY
  55. {line-height: 1.33;
  56. padding:   8px}
  57.  
  58. H1
  59. {font-size:  2em;
  60. margin-bottom:   .67em;
  61. margin-left: 0;
  62. margin-right: 0;
  63. margin-top:   .67em}
  64.  
  65. H2
  66. {font-size:  1.5em;
  67. margin-bottom:   .83em;
  68. margin-left: 0;
  69. margin-right: 0;
  70. margin-top:   .83em}
  71.  
  72. H3
  73. {font-size:  1.17em;
  74. margin-bottom:   1em;
  75. margin-left: 0;
  76. margin-right: 0;
  77. margin-top:   1em}
  78.  
  79. H4, P, BLOCKQUOTE, UL, FIELDSET, FORM, OL, DL, DIR, MENU
  80. {margin-bottom:   1.33em;
  81. margin-left: 0;
  82. margin-right: 0;
  83. margin-top:   1.33em}
  84.  
  85. H5
  86. {font-size:  .83em;
  87. line-height:  1.17em;
  88. margin-bottom:   1.67em;
  89. margin-left: 0;
  90. margin-right: 0;
  91. margin-top:   1.67em}
  92.  
  93. H6
  94. {font-size:  .67em;
  95. margin-bottom:   2.33em;
  96. margin-left: 0;
  97. margin-right: 0;
  98. margin-top:   2.33em}
  99.  
  100. H1, H2, H3, H4, H5, H6, B, STRONG
  101. {font-weight: bolder}
  102.  
  103. BLOCKQUOTE
  104. {margin-left:  40px;
  105. margin-right:  40px}
  106.  
  107. I, CITE, EM, VAR, ADDRESS
  108. {font-style: italic}
  109.  
  110. PRE, TT, CODE, KBD, SAMP
  111. {font-family: monospace}
  112.  
  113. PRE
  114. {white-space: pre}
  115.  
  116. BIG
  117. {font-size:  1.17em}
  118.  
  119. SMALL, SUB, SUP
  120. {font-size:  .83em}
  121.  
  122. SUB
  123. {vertical-align: sub}
  124.  
  125. SUP
  126. {vertical-align: super}
  127.  
  128. S, STRIKE, DEL
  129. {text-decoration: line-through}
  130.  
  131. HR
  132. {border:  1px inset}
  133.  
  134. OL, UL, DIR, MENU, DD
  135. {margin-left:  40px}
  136.  
  137. OL
  138. {list-style-type: decimal}
  139.  
  140. OL UL, UL OL, UL UL, OL OL
  141. {margin-bottom: 0;
  142. margin-top: 0}
  143.  
  144. U, INS
  145. {text-decoration: underline}
  146.  
  147. CENTER
  148. {text-align: center}
  149.  
  150. BR:before
  151. {content: "\A"}
  152.  
  153. /* An example of style for HTML 4.0's ABBR/ACRONYM elements */
  154.  
  155. ABBR, ACRONYM
  156. {font-variant: small-caps;
  157. letter-spacing:  0.1em}
  158.  
  159. A[href]
  160. {text-decoration: underline}
  161.  
  162. :focus
  163. {outline: thin}
  164.  
  165. /* Elements that are block-level in HTML4 */
  166.  
  167. ADDRESS, BLOCKQUOTE, BODY, DD, DIV, DL, DT, FIELDSET, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, IFRAME, NOSCRIPT, NOFRAMES, OBJECT, OL, P, UL, APPLET, CENTER, DIR, HR, MENU, PRE, LI, TABLE, TR, THEAD, TBODY, TFOOT, COL, COLGROUP, TD, TH, CAPTION
  168. {unicode-bidi: embed}
  169.  
  170. /* End bidi settings */
  171.  
  172. @media print
  173.  
  174. H1, H2, H3, H4, H5, H6
  175. {page-break-after: avoid;
  176. page-break-inside: avoid}
  177.  
  178. BLOCKQUOTE, PRE
  179. {page-break-inside: avoid}
  180.  
  181. UL, OL, DL
  182. {page-break-before: avoid}
  183. }