Solved

Dreamweaver MX vs 8

Posted on 2006-11-10
8
980 Views
Last Modified: 2012-05-05
I just installed Dreamweaver 8 onto my computer and opened up sites that were created in Dreamweaver MX 2002.  The site looks fine until I preview it in a web browser.  When I preview it in a web browser the CSS file is not applied.  

Does anyone know how can I fix this?
0
Comment
Question by:sensi12002
8 Comments
 
LVL 7

Expert Comment

by:MHenry
ID: 17919573
sensi12002,

Try relinking the CSS stylesheet. In the Properties tab, click the Styles dropdown. At the bottom is a choice for attach style sheet.

Give that a shot.

Best,
MH
0
 
LVL 3

Expert Comment

by:judsonmusic
ID: 17923582
open the style sheet and resave it in 8

do the same for the pages.

make sure that the style sheet is linked. you may want to re-link them.
0
 
LVL 6

Accepted Solution

by:
Fahdmurtaza earned 125 total points
ID: 17962863
Check whether the stylesheet code is missing or just the path for stylesheet is invalid. If the path is invalid, correct once and for the rest of the pages, use CTRL + F to search and replace the wrong path of stylesheet throughout the opened site. This will save you alot of time. This is what I always use; a great time saver.

Regards,
Fahd Murtaza
0
 

Author Comment

by:sensi12002
ID: 17968008
This is what I did to fix it.

I changed this:
<link href="/custom.css" rel="stylesheet" type="text/css">

to this:
<link href="../custom.css" rel="stylesheet" type="text/css">

It would be great if someone will shed some light on what the difference is.
0
 
LVL 7

Assisted Solution

by:MHenry
MHenry earned 125 total points
ID: 17968077
Fahdmurtaza nailed it. You needed to change the path. Of course, all comments talked about relinking the style sheet and if you would have done that, the path would have taken care of itself.

What you're seeing is relative path type of linking. Another method is abdolute path. You can do a search for relative path to find out more but the basics are below:

If the stylesheet is in the same directory as the pages, you would have this: <link href="custom.css" rel="stylesheet" type="text/css">
If the sylesheet is in a subdirectory you would have this : <link href="FOLDER/custom.css" rel="stylesheet" type="text/css">
If the pages are in a subfolder and the stylesheet is above you would have this: <link href="../custom.css" rel="stylesheet" type="text/css">

Best,
MH
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Record Button 3 221
Read More links 12 356
Dreamweaver css dropdown will not show styles 8 697
Saving Form Data when Leaving Page 3 360
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question