Online
Appendix D
| ||
Setting Code Preferences: CSS Styles If you're used to writing CSS styles by hand, you may have been writing them in shorthand. Or, your house style conventions may prefer shorthand rather than long-form CSS code. In
CSS shorthand, you can use a single attribute to define a whole
group of CSS attributes. For example, to set my font using longhand
CSS, my style class would look like this: .bodyText { font-family: "Courier New", Courier, mono; font-size: 14pt; font-style: italic; line-height: 20pt; font-weight: bold; font-variant: normal} In shorthand, I can use the single font attribute in place of the separate listed attributes above: .bodyText { font: italic bold normal 14pt/20pt "Courier New", Courier, mono} Similar shorthand settings exist not only for fonts, but for backgrounds, margins and padding, border and border width, and list styles. To see examples and proper style, refer to the W3C CSS specification.
To change CSS Styles preferences:
|
|
|