Microsoft KB Archive/238342

From BetaArchive Wiki
Knowledge Base


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

Article ID: 238342

Article Last Modified on 10/1/2001



APPLIES TO

  • Microsoft Visual InterDev 6.0 Standard Edition



This article was previously published under Q238342

SYMPTOMS

Themes that are created in Visual InterDev 6.0 may fail to display any graphic images when they are viewed in Netscape 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. Microsoft 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.

Keywords: kbnofix kbsitedesigner kbprb kb3rdparty kbfaq KB238342