Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dreamweaver shows the css styles from a different website

Community Beginner ,
Jan 09, 2017 Jan 09, 2017

I have had this happen to two different websites so it's important I get the answer.

I am creating a newsletter to be sent out via an email broadcast, so I need to use absolute links to the css style sheet (e.g., http://www.afpneo.org/zcss.css instead of ../zcss.css).

When I use the relative link (../zcss.css), the newsletter looks fine in design view. However, when I switch the link to http://www.afpneo.org/zcss.css , it actually shows and lists the styles from one of my other websites (e.g., http://www.bcfohio.org/zcss.css

When I publish it, it looks fine - it shows the styles from afpneo, but I need it to show the styles when I am in design view so I can design it correctly. Any ideas?

Thank you!

Here's the code in case you don't believe me! And yes, this appears in all my past enewsletter files!

    <link href="http://www.afpneo.org/zcss.css" rel="stylesheet" type="text/css" />

766
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2017 Jan 09, 2017

Which version of Dreamweaver are you running?

Which operating system?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 09, 2017 Jan 09, 2017

CS6, Windows 7

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2017 Jan 09, 2017
  • For best results, always work in a defined local site folder.
  • Bring your remote assets to your local folder.
  • During development, use document relative links for images & stylesheets.
  • When you're done, use Find & Replace to change document relative links to absolute links.

Incidentally, if you do a lot of HTML emails, you can put them all in the same local site folder.  You don't have to define a new site for each newsletter.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 09, 2017 Jan 09, 2017

Did all this. Still showing the wrong CSS styles when using the absolute link.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2017 Jan 10, 2017

When I use the relative link (../zcss.css), the newsletter looks fine in design view. However, when I switch the link to http://www.afpneo.org/zcss.css , it actually shows and lists the styles from one of my other websites (e.g., http://www.bcfohio.org/zcss.css

These files are identical. Perhaps you should change one of them to reflect the styles that you want to link to.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 10, 2017 Jan 10, 2017

No, they are not identical.

<http://www.afpneo.org/zcss.css> http://www.afpneo.org/zcss.css:

body {

font-family: Calibri, Arial, Helvetica, sans-serif;

font-size: 14px;

color: #000;

margin: 0px;

background-color: #9dacd3;

font-weight: normal;

}

http://www.bcfohio.org/zcss.css

body {

font-family: Arial, Helvetica, sans-serif;

font-size: 15px;

line-height: 120%;

background-image: url(images/BCFO3.jpg);

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2017 Jan 10, 2017

Have tried renaming files?  That might force DW to rebuild the site cache.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 10, 2017 Jan 10, 2017

Yes, I tried the remaining files and had the same result, but forcing DW to rebuild the site cache does sound interesting. Is there a way to do it manually? I did remove the site and add it back in and it rebuilt the cache, but it still had the same results – pink background instead of blue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2017 Jan 10, 2017

Site > Advanced > Recreate Site Cache.

I would also try inserting a totally different CSS link and see what DW does.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 11, 2017 Jan 11, 2017

Thanks, Nancy! So funny – I opened the newsletter today, and it’s showing me the css styles from ANOTHER website – summitfathers.org.

I rebuilt the cache and no change.

I changed the absolute link to http://www.bcfohio.org/zcss.css ... And it still showed me the summit fathers css!!

I changed it to the relative ../zcss.css and it showed the afpneo.org css.

I changed the absolute link to http://www.bcfohio.org/zcss.css ... And it still showed me the summit fathers css!!

I changed the absolute link to http://www.afpneo.org/zcss.css ... And it still showed me the summit fathers css!!

I rebuilt the cache again. Still the summit fathers css!

Something very screwy is going on here!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2017 Jan 11, 2017

Have you tried giving the actual css file a different name, rather than all of them sharing zcss.css, make them afpneo.css, bcfohio.css and summitfathers.css?

What do your site definitions look like? Are you leaving any information, like the web URL in the remote server settings from one site in the other?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 11, 2017 Jan 11, 2017
LATEST

Jon, you win the candy apple! I changed the css file name to http://www.afpneo.org/afpcss.css  and it worked!!! Life is good! Thank you, everyone, for all of your good ideas and tenascious persistence! I'm glad we got this solved!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines