HTML Document Has a Blue Background When It Is Set As Desktop Wallpaper (295535)



The information in this article applies to:

  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional

This article was previously published under Q295535

SYMPTOMS

If you set a Hypertext Markup Language (HTML) document as your desktop wallpaper, the background of the wallpaper may appear blue, even though the background is white when you view the image in Microsoft Internet Explorer.

CAUSE

This issue can occur if the HTML document does not have a <body> tag at the beginning of the document. In this case, the document inherits the default background color of Active Desktop, which is blue.

RESOLUTION

To resolve this issue, use an editor program to open the HTML document, and then type the following line at the beginning of the document:

<body bgcolor="#FFFFFF">

"#FFFFFF" sets the background color to white. If you want to set a different color as the background color, you can substitute another standard color hexadecimal value.

Modification Type:MinorLast Reviewed:1/15/2006
Keywords:kbprb kbui KB295535