Microsoft KB Archive/175191

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 10:08, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 175191

Article Last Modified on 5/2/2006



APPLIES TO

  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Visual InterDev 1.0 Standard Edition
  • Microsoft Visual InterDev 6.0 Standard Edition



This article was previously published under Q175191

SYMPTOMS

Pages that are created with the Visual InterDev Data Form Wizard do not display background images in Internet Explorer 4.0.

CAUSE

The underlying cause of this behavior is that Internet Explorer 4.0 adheres much closer to the HTML 3.2 specification than before. According to the Cascading Style Sheet (CSS) spec, CSS tags take precedence over HTML tags. Pages that are created by using the Data Form Wizard have a reference to a cascading style sheet. The CSS has a tag for the background image of Transparent, thus overriding any value in the body tag of the ASP file.

RESOLUTION

Delete the "background: transparent;" line from the BODY property of the Cascading Style Sheet.

STATUS

According to the CSS specification, this behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create the following HTML file, making sure to reference a valid image in the background tag:

         <STYLE>
             BODY {
                  font: 10pt "Arial";
               margin-left: 0px;
               text-align: left;
               color: Black;
                         background: transparent;
               }
          </STYLE>
          <HTML>
          <BODY BACKGROUND="images/image.jpg">
          </BODY>
          </HTML>
                        
  2. View the page. You should not see a background image.
  3. Delete the "background: transparent;" property.
  4. View the page. You should now see the background image.


REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:


Additional query words: background

Keywords: kbprb kbwizard KB175191