Microsoft KB Archive/322240

= BUG: WinXP: DHTML CSS Background-Image Property Does Not Work with BUTTON Elements =

Article ID: 322240

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft Internet Explorer 6.0

-



This article was previously published under Q322240



SYMPTOMS
The DHTML cascading style sheet (CSS) background-image property does not work with BUTTON elements in Microsoft Windows XP when the Windows display is set to use Windows XP style.



RESOLUTION
Use one of the following methods to resolve this problem:  Change the Windows style from XP to Classic:  Click Start, click Control Panel, and then double-click Display. In the Display Properties dialog box, click the Appearance tab. For Windows and buttons, click to select Windows Classic style.   Internet Explorer 6.0 uses the new Windows XP themes to render its controls. Add a meta tag to disable themes on the page:  </li>  Use the background property instead of the background-image property: <button style=&quot;background='url(image.gif)';&quot;>show background image </li></ul>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
  Create a new HTML file, and then paste the following code in the file: <HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <button style=&quot;background-Image='url(image.gif)';&quot;>show background image </BODY> </HTML> </li> Save the HTML page and make that sure a .gif file named Image.gif exists in the same directory as the HTML page.</li> Make sure that Windows XP style is selected:  Click Start, click Control Panel, and then double-click Display.</li> In the Display Properties dialog box, click the Appearance tab.</li> For Windows and buttons, click to select Windows XP style.</li></ol> </li> Open the HTML page.</li></ol>

Additional query words: xp image button

Keywords: kbbug kbnofix KB322240

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.