iv just got a new computer at work and have transferred a web site over to the new computer. when i open it in dreamweaver the css styles are shown but when i go into live view or load it in a browser the css disappears. the layout is still the same but all of the divs are not in the right positions.
iv tried to re attach the style sheet but it doesnt work. does anyone have any ideas how to remedy this?
snefmoo 0 Light Poster
Recommended Answers
Jump to Posthave a look at your references - are they absolute or relative? Do they still apply to the new site? Are you using something like http://localhost/index.htm? Or have you got subfolders, etc? Have you tried opening the index.htm page through windows explorer? If that doesn't work, it seems that …
Jump to PostThanks Lus.
This is an absolute wrt site root - BUT only if your site root is http://localhost/ or similar. If it has an additional '/' in it, you'll be buggered.
Try taking off the '/' at the beginning of the '/styles'
<link href="/styles.css" …
All 7 Replies
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

diafol
it200219 0 Light Poster
snefmoo 0 Light Poster
snefmoo 0 Light Poster
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.