CSS in VS2008

Associate
Joined
9 Dec 2008
Posts
2,341
Location
Somewhere!
Hi all,

I'm having a problem with some CSS in Visual Studio 2008.

The layout / colours of the page display correctly in the Split / Design views, but when I press CTRL + F5 to view the page in a browser, all of the CSS is stripped out.

Anyone come across this before?

Cheers.
 
You have triple checked your HTML reference links and you dont have any developer tools running on the browser that disables CSS?
 
<link href="App_Data/CSS/MyStyle.Css" rel="stylesheet" type="text/css" />

That's what I'm using to link the CSS.. and from what I can tell, there are no options in my browser (IE7) which would disable the CSS
 
Solved!

For some reason - the website was saved in 2 different places. In 2 folders I didn’t create, one called Website, and other called Project.. CSS was in the Website folder, but not in the Project folder where the .sln was! Copied the CSS into both folders, and used full URL and it works! Woooo! :D
 
Back
Top Bottom