適用するスタイルの種類のこと
セレクタ{ プロパティ: 値; }
p{ color: red; }
p{ font-style: italic; }
p{ font-variant: small-caps; }
p{ font-weight: bold; }
p{ font-size: 20px; }
p{ line-height: 1.5; }
p{ font-family: serif; }
p{ font: italic bold/20px 1.5 serif; }
p{ text-align: center; }
p{ text-decoration: underline; }
p{ text-indent: 1em; }
p{ text-shadow: 3px 3px 2px #444; }
p{ text-transform: uppercase; }
p{ letter-spacing: 3px; }
p{ word-spacing: 10px; }
p{ white-space: nowrap; }
body{ background-color: red; }
body{ background-image: url(image.png); }
body{ background-repeat: no-repeat; }
body{ background-attachment: fixed; }
body{ background-position: center; }
body{ background: red url(image.png) no-repeat fixed center; }
div{ width: 500px; }
div{ height: 200px; }
div{ margin: 20px; }
div{ padding: 20px; }
div{ border-width: 1px; }
div{ border-style: solid; }
div{ border-color: red; }
div{ border: 1px solid red; }
ul{ list-style-type: square; }
ul{ list-style-position: inside; }
ul{ list-style-image: url(image.png); }
ul{ list-style: square inside none; }
div{ display: block; }
div{ position: relative; }
div{ float: left; }
div{ clear: left; }
div{ overflow: hidden; }
div{ visibility: hidden; }
div{ z-index: 1; }