Flash CS3 Documentation |
|||
| Learning ActionScript 2.0 in Adobe Flash > Working with Text and Strings > Formatting text with Cascading Style Sheet styles > Styling built-in HTML tags | |||
Flash Player supports a subset of HTML tags. (For more information, see Using HTML-formatted text.) You can assign a CSS style to every instance of a built-in HTML tag that appears in a text field. For example, the following code defines a style for the built-in <p> HTML tag. All instances of that tag are styled in the manner specified by the style rule.
p {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
display: inline;
}
The following table shows which built-in HTML tags can be styled and how each style is applied:
|
Style name |
How the style is applied |
|---|---|
p
|
Affects all |
body
|
Affects all |
li
|
Affects all |
a
|
Affects all |
a:link
|
Affects all |
a:hover
|
Applied to an After the mouse pointer moves off the link, the |
a:active
|
Applied to an After the mouse button is released, the |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00000916.html