Cannot Set the Color Attribute for a Font element in a Marquee Element (312143)



The information in this article applies to:

  • Microsoft TV Advanced 1.0
  • Microsoft TV Advanced 1.5

This article was previously published under Q312143

SYMPTOMS

When you set the color attribute of a font element, the color attribute is ignored when it is nested in an HTML element such as a marquee element.

CAUSE

The marquee element in Microsoft TV Advanced Client does not support the color attribute within a font element when it is nested in a marquee element.

WORKAROUND

To work around this behavior, do one of the following:
  • Place the font elements outside the marquee elements. This will work with both Microsoft TV Advanced Client and Microsoft Internet Explorer.

    For example:
    <FONT COLOR="#FF000">
    <MARQUEE BEHAVIOR="SCROLL">
    Marquee color is red...
    </MARQUEE>
    </FONT>
    						
    -or-

  • Use an inline style attribute in the marquee element. This only works with Microsoft TV Advanced client.

    For example:
    <FONT COLOR="#FF000">
    <MARQUEE BEHAVIOR="SCROLL" STYLE="color:#FF000">
    Marquee color is red...
    </MARQUEE>
    </FONT>
    						

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Behavior

In the following snippet of HTML code, the text within the marquee element is displayed as black instead of red. Cut and paste this snippet into a blank HTML page. View the HTML page by using the Microsoft TV Simulator or Microsoft TV Advanced Client.
<HTML>
<BODY>
<MARQUEE BEHAVIOR="SCROLL">
<FONT COLOR="#FF000">
Marquee color is red...
</FONT>
</MARQUEE>
</BODY>
</HTML>
				

REFERENCES

For additional information, see the Microsoft TV Web site : For additional information on how to use the Microsoft TV Simulator, see the Content Development Kit.

Modification Type:MinorLast Reviewed:6/18/2003
Keywords:kbprb KB312143