Up until now, I considered myself a decent programmer but now I am having doubts.
My folder structure is like below
Root
|
|--- Images (folder)
|
|--- Inc (folder)
| |
| |--- main.css
| --- autocomplete.css
|
|--- start.aspx
I had my css file linked in start.aspx
<link href="/styles/autocomplete.css" rel="stylesheet" type="text/css" />
But that was messing up the style… After long frustrating day, I just changed it to
<link href="styles/autocomplete.css" rel="stylesheet" type="text/css" />
just to test one more useless possibility & it worked. It was working fine with / in start before & still works on production server…
I dont understand… Why suddenly css stopped working?
Don’t be so hard on yourself – stuff happens. 😀
The leading “/” should resolve to the site root.
Using just “styles” would look for a styles folder in the current directory.
What browser were you using? Did the problem occur in one or every one?