I have this problem when the web application that I created in my development environment displays differently after I uploaded it to the web server.
I use the same browser and the same computer to view pages. The only difference is the "server". I use .net 3.5 and in my development environment pages are served using ASP.net Development Server. On a web server, pages are submitted using IIS 6.0.
I have only one CSS file which is contained in the "App_Themes / Default" folder, which is used to manage all the CSS in my application.
Here are some of the things that do not appear the same:
1) I have a collapsible panel control, which, if assumed, should expand over all other elements of the page. In the dev environment, it behaves correctly. On a web server, the panel slides under other elements.
2) I have an element defined with a background and a certain font size. When displayed in my development environment, text is displayed on one line. However, on a web server, the text is wrapped even if the text is the same size. It is as if the informative div somehow turned out to be "smaller".
3) The width of buttons that do not have a fixed width (therefore, the width is determined by the button text) differs between the development environment and the web server. Buffers on the server are always wider.
I checked that there were no links to other CSS elements in the machine.config file and the global web.config on the server and in my development environment.
I know that the server reads from CSS, because in general it is similar (the same colors, background, font style, etc.). It is just that the dimensions seem to be off and layering divs.
Has anyone encountered this problem before? Any ideas on what I might be looking for?
css
Amanda Myer Dec 08 '09 at 14:38 2009-12-08 14:38
source share