Copy link to clipboard
Copied
The first image is with no attached CSS
Then I attach one CSS and I get multiple attachments. Sometimes more than just one extra.
None of the attched sheets perform as the should.
Any idea folks?
Copy link to clipboard
Copied
Spry, lightbox, jquery -- this must be a very old site.
Code errors are almost always caused by other code errors elsewhere in your site.
Start by validating HTML and fix reported errors.
1. Window > Results > Validation.
2. Click the triangle to check document.
3. Repeat on other documents in your site.
Failing that, try Restoring Preferences as described below.
https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver.html
Copy link to clipboard
Copied
Yes Nancy it's probably 15/20 years old.
It's a photography site so I only ever add or remove photos.
Unfortunately the contact links have been disabled by my domain host, so to temporary get round this I wanted to add a contact form, and this is where the problems started.
Tried validating (Didn't know about this, love it). It did find a couple of things but they weren't related.
Tried the reset you suggested but this din't work either, so I uninstalled DW and then reinstalled it.
Again not fixed.
What I have noticed is the addresses of each CSS file.
One is on my PC path, the path I entered, but the other is showing an http location.
Does this help?
Copy link to clipboard
Copied
Can we see the page online? A thought I'm having is that your CSS file might include the other CSS file in which case you could get both.
Copy link to clipboard
Copied
Hi Ben.
I checked my CSS file and there's no reference to another file.
It's an extremely small CSS file. See below.
body {
width: 95%;
height: auto;
margin: 0 auto;
padding-top: 20px;
padding-left: 50px;
padding-bottom: 60px;
background-color:#D7D5F0;
}
.reply {
margin-top: 50px;
border: solid 3px blue;
width: 15em;
background-color: white;
font-size: 25px;
color: #4763E7;
padding: 20px;
}
.replyphoto {
float: left;
width:fit-content;
height:fit-content;
box-shadow: 20px 20px 20px #5A5A5A;
}
By online do you mean my URL?
Copy link to clipboard
Copied
Something I just tried.
I generated a new CSS file with a totally different name, and placed it in my CSS folder, then attached it using DW.
<link href="/css/New.css" rel="stylesheet" type="text/css">
This time it didn't generate multiple CSS links, but it still gives the wrong path.
Also this New file has no affect on my page.
Copy link to clipboard
Copied
I just found a sulution.
Why DW was doing this beats me. I don't know DW well enough.
I went into sites and deleted my photos site, and now everything is working fine.
Thanks Nancy and Ben for helping.
Copy link to clipboard
Copied
Based on info provided, I think there's a problem with your Site Definition settings. See screenshots below.
Local Site = a folder of files on your primary hard drive (C:\MySite\).
Remote Site = the files on your remote server (https or http).
Advanced Settings > Local Info
LINK PATHS:
Document relative -- .../folder/filename, used by most sites.
Site root relative = /folder/filename, used by experienced developers.
Absolute = https or http:// example.com/folder/filename, used in emails.
Hope that helps. Post back if you have more questions.