Amaya user interface Manual de Instruções Página 59

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 108
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 58
17.8. Creating a generic style for an element or a class
When a style attribute is associated with an element, you can use that element as a model for creating
or modifying a style rule by using the Format/Create rule command.
To create a generic style for an element or class:
1. Select the element you wish to use as the model. By default the selection is set to the character
string, and you have to press the F2 key to select the enclosing element.
Note: You must select only one element and this element must have a style attribute.
2. Choose Create rule from the Format menu. Amaya opens a dialog displaying a list of CSS
selectors. This list contains all classes that are defined for the current document (including those
defined in the linked CSS style sheets), as well as the element type to which the style is
associated.
3. Choose a selector in this list or enter a new class name and click Confirm.
The style of the selected element is then associated with the chosen selector and the style
attribute is removed from the selected element. Its value is moved to the style element, in the
document head, and all elements matching the selector are displayed with the new style.
When a new class is created with command Create rule, this class is automatically added to the list of
the Apply class tool.
17. Styling documents
59
Vista de página 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 107 108

Comentários a estes Manuais

Sem comentários