Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI!
When I publish my internal website it looks completely different from when I ran my project on my machine. My color and size settings are the style sheet and it seems like this style sheet is completely ignored.

I am using VS2010 and IE7.

Any ideas?

Thank you
Posted

The idea is simple: load some page in question in a regular Web browser, look at its HTML source code. It could be something like "View" -> "Page Source". Look how URIs of style sheets and other resources were rendered. Then used them to load required resources using the same browser, recursively. You will see what's missing.

—SA
 
Share this answer
 
Comments
masha_mta 24-May-12 16:16pm    
What do you call a regular Web browser? I am using Internet Explorer.
Sergey Alexandrovich Kryukov 25-May-12 0:48am    
That one will do the trick, too...
--SA
masha_mta 24-May-12 16:30pm    
OK, I guess my question is not that clear.
I have IE8 on my local machine. Our server has IE7. I understand that there is some kind of compatibility to be set
Sergey Alexandrovich Kryukov 25-May-12 0:51am    
No. You asked about published Web site, not client. A HTTP browser cannot change processing of CSS (this is a client's business), and different browsers can make some difference, but not that whole style sheet can disappear. So, you might have missed something. Use my recipe to find out.
By the way, testing of a Web site with different browsers is kind of a must, anyway...
--SA
hi masha_mta,

have you tried it different web browsers like firefox, or chrome?
 
Share this answer
 
Comments
masha_mta 24-May-12 16:31pm    
Yes. I tried chrome. The same. I downloaded something called IETester where you can see how your site look in different versions of IE and it looks the same everywhere (providing this tool works).
Sergey Alexandrovich Kryukov 25-May-12 0:52am    
This confirms what I said in my answer and comments. Please use my recipe to find out.
--SA
Sounds like it is relative path issue. At times, after deployment the path referenced as a source for images, stylesheets, etc is not correctly formed. This leads to no file found at the location referred because of which images don't download or style-sheets does not get applied.
You would need to make sure that the path is correct such that file is found and used.

I would suggest you to use this Tip and resolve the path correctly before setting the source of the file: Resolving Paths in a Multi-Folder WebSite[^]
 
Share this answer
 
Comments
masha_mta 25-May-12 11:02am    
Thank you Sandeep and thank you SAKryukov.
Here what the problem was: I didn't set the correct rights to my virtual directory.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900