• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Changing the Text Style

The various text attributes of CSS allow you to alter the appearance of the type in any widget that uses text, including text fields, text areas, buttons, menus, and lists. Table 69.1 provides a summary of common CSS text attributes if you need a refresher.

Table 69.1. Common CSS Attributes for the Text in Text Widgets
ATTRIBUTECONTROLSEXAMPLE
font-familyThe typeface of the text in the widgetfont-family: Arial, Helvetica, sans-serif;
font-styleThe style of the text in the widgetfont-style: italic;
font-weightThe weight of the text in the widgetfont-weight: bold;
font-sizeThe size of the text in the widgetfont-size: 12px;
font-variantThe typeface variation of the text in the widgetfont-variant: small-caps;
text-transformThe way the browser alters the casing of the text inside the widgettext-transform: lowercase;
text-decorationThe underline, overline, or line-through of the text inside the widgettext-decoration: underline;



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint