Weird Dreamweaver Design View Issue

HairyHun

Masturbating Bandit
Oct 11, 2007
576
2
0
Greetings,

Something strange happenned. All of a sudden one of my sites is showing without the CSS alterations in the design view of Dreamweaver. Basically it looks as if there was no css files linked to it.

If I upload it to the test server, it's all good ( as before )

Also, i have another site which was based on a copy of the first site, it behaves normally.

Now here is a clue. I use root-relative links. i.e. /css/style.css
This has never been a problem in the Dreamweaver design view.
When I change it to document relative, i.e. ../css/style.com then the styles are starting to come back. I really don't want to waste hours changing all my links now.

The weird thing is that one site behaves well and the other not. And I have not changed anything as far as I can tell. Any ideas on this? Is this some setting? or maybe a glitch?

Thanks
HH
 


Honestly, if you're comfortable enough with code, or even if you're just barely uncomfortable with code, get out of dreamweaver. It's attempt to show you what the page "looks" like is mediocre at best, and it generally produces junky code.

It'll take a little bit of effort, but once you switch, you'll realize how much more control you have when you're just wrestling with code instead of dreamweaver AND code.
 
Your problem is dreamweaver. Remove that and you'll be fine.

Srsly, I've seen similar problems with dreamweaver doing things like that to the code. If you are using php, just put something like <?php echo 'http//'.$_SERVER['HTTP_HOST'].'/';?> before your URIs and it will force it to give absolute path and still be somewhat portable.