Copy link to clipboard
Copied
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" />
Copy link to clipboard
Copied
Which version of Dreamweaver are you running?
Which operating system?
Copy link to clipboard
Copied
CS6, Windows 7
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Did all this. Still showing the wrong CSS styles when using the absolute link.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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);
}
Copy link to clipboard
Copied
Have tried renaming files? That might force DW to rebuild the site cache.
Nancy
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Site > Advanced > Recreate Site Cache.
I would also try inserting a totally different CSS link and see what DW does.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now