PRB: Graphics from Visual InterDev Themes May Not Display in Netscape Browsers

ID: Q238342


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SYMPTOMS

Themes created in Visual InterDev 6.0 may fail to show any graphic images when viewed in Netscape's Navigator or Communicator products.


CAUSE

Netscape incorrectly implements relative URLs as defined in the CSS level 1 and 2 specifications. Theme style sheets use relative paths to the images files. Internet Explorer correctly requests the image files from the same folder as the .css file, while Netscape products request the images from the same folder as the .htm document.

The CSS Level 1 specification defines the use of relative URLs(in section 6.4) as follows:

Partial URLs are interpreted relative to the source of the style sheet, not relative to the document.
The CSS Level 2 specification defines the use of relative URLs(in section 4.3.4) as follows:
For CSS style sheets, the base URI is that of the style sheet, not that of the source document.


RESOLUTION

To make allowances for this behavior, you can edit the style sheets in a text editor such as Notepad and add fully qualifed URLs for each graphic image as the following example:


body  {background: url(arctile.jpg);} 
This should be changed to the following:

body  {background:url("http://server/web/_themes/Themename/arctile.jpg");} 


MORE INFORMATION

This problem has been reported to Netscape.

Additional query words:

Keywords : kbSiteDesigner kbVisID600 kbGrpASP kbDSupport
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: September 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.