Forum Moderators: mack
my folder errors are coming from yahoo. i can only connect in dreamweaver and upload if i have a subdirectory folder with the same name. when i try to connect to the main yahoo folder(the main directory), the files won't upload even if the folder names match.
is putting the style sheet in the <head> section the same as attaching the style sheet to your page?
<link rel="stylesheet" type="text/css" href="style.css">
I use the relative path from the page to the style sheet, so if the page and style sheet are both in public_html, then you'd use the above line. If the stylesheet is in public_html but the page is in a subdirectory, it would be
<link rel="stylesheet" type="text/css" href="../style.css">
etc.
or is this an extra step after attaching the style sheet? i attached the style sheet as a link(as opposed to "import")
However you "add" the style sheet ("attach", "link", "import"), just make sure that in the code the head section has the correct line and everything should be ok. Regardless of whether you're working in site builder, Dreamweaver, etc., the end result of any editing is changes to the HTML code in the page, so checking the HTML itself is always the best final check to see if things are ok.
the problem arises when i upload. my folder errors are coming from yahoo. i can only connect in dreamweaver and upload if i have a subdirectory folder with the same name. when i try to connect to the main yahoo folder(the main directory), the files won't upload even if the folder names match.
Is this a free hosting account? I don't remember if the ftp upload rules are different for free vs paid, but it might be something to look into. I believe (not 100% sure) the "base" (or root, or whatever they call it) folder at Yahoo is public_html, same as it is at most Linux hosts. So when you are specifying which folder to "publish into" in Dreamweaver, you tell it public_html.
Usually, your subdirectory structures in your local Dreamweaver site and the remote site do have to be the same for everything to turn out right, but what typically happens if they're not the same isn't an error, but rather, if a folder exists in your Dreamweaver site that is not on the remote site, that folder is created during the upload and the files are put in it. So in other words, the files get uploaded but they end up not being where you expect them to be.
If the site is small and you can't get FTP upload to work, you can go to individual files in Yahoo's File Manager, open them for editing, and then copy the code out of Dreamweaver (in code view) and paste it into the File Manager editor box (replacing whatever's there), and save it.