Applying external CSS to a text field


show more Applying external CSS to a text field provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics show less
please wait ...

Applying external CSS to a text field

Now we'll talk about loading an external CSS file into Flash, and using that CSS file to style text in a dynamic text field. Before we go into Flash, if you have access to exercise files, find Chapter 03 and open the styles folder and open up style.css in a text editor. I'm going to open it in TextWrangler. This file is a very simple CSS file. This file defines two CSS selectors - styling for the a tag and styling selling for a:hover. In the last movie we talked to a lot about what a tag does. Remember the a tag is the html anchor tag or link tag The code I have selected here everywhere from the a, to the open and close curly braces, specifies a style for the a tag.

Notice the color here is set to CC0000. That's going to give us the same dark red color for our link that we had in the last movie. What's different here is a:hover. A:hover refers to a link when it's rolled over or hovered over with a mouse. In curly braces, there's the code that says text--decoration:underlin...

Applying external CSS to a text field
Video duration: 7m 53s 5h 21m Intermediate

Viewers:

Applying external CSS to a text field provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics

Subject:
Web
Software:
Flash Professional
Author:
please wait ...