Microsoft KB Archive/310394

= PRB: Style and Font Properties Set on a Mobile Control May Not Appear in HTML Browsers =

Article ID: 310394

Article Last Modified on 6/14/2002

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



This article was previously published under Q310394



SYMPTOMS
If you set certain style or font properties on a mobile control, they may not appear when you browse with a Hypertext Markup Language (HTML) browser that supports the style or font.



CAUSE
This behavior can occur because style and font properties are not rendered to an HTML browser as a Cascading Style Sheet (CSS), but are rendered with non-CSS properties. Style and font properties are not rendered by a mobile control if the control cannot be rendered with non-CSS properties to represent the style or font.

For example, a mobile Command control with the BackColor property set to any color, renders a HTML  tag to the browser. The HTML  tag has a type=button attribute, but doesn't have an attribute to represent the background color. This is because the HTML  tag does not have a non-CSS representation for setting the background color.

This behavior occurs with other mobile controls in the Microsoft Mobile Internet Toolkit (MMIT).

NOTE: The Mobile Designer that was used to develop MMIT Web applications in Visual Studio .NET does not disable style and font properties that have the behavior that is described in this article.



RESOLUTION
To resolve this behavior, leave the style and font properties available so that you can extend the MMIT to support CSS. MMIT is built upon a device adapter model that allows you to change the rendering logic of a mobile control. You can change the rendering logic of a mobile control if you modify the Devise Adapter files that are included with the MMIT.



STATUS
This behavior is by design.



MORE INFORMATION
The MSDN documentation included with MMIT contains additional information on modifying MMIT Device Adapter files.

Keywords: kbprb kbbrowse kbservercontrols kbhtmldevice KB310394

-

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

© Microsoft Corporation. All rights reserved.