Home / Tutorials / ActionScript / Apply CSS to HTML in Flash ActionScript 3.0 /

Flash Tutorials

Apply CSS to HTML in Flash ActionScript 3.0 - Step 3: Creating the CSS file

Posted by : FireCode on Sep 03, 2010

 

5.0/5

Open your favorite text editor and create a new file, then save it with the .css extension. Inside the file write the following lines:

p
{
    font-family: Arial;
    font-size: 12px;
    text-align:center;
    color:#000000;
}

Save your file again. We have now defined our formatting for a simple text paragraph.

Now let's add some spice to it. Add the following lines also:

a
{
    color:#FF0000;
    font-weight:bold;
}

a:hover
{
    text-decoration:underline;
}

We have now defined the text formatting for links. Don't foget to save your file again.

no comment

Add comment

Please login to post comments.