|moving from yahoo sitebuilder to dreamweaver|
i have an actual problem with this. i started out with yahoo sitebuilder and then figured out dreamweaver. now i am trying to set up with dreamweaver and i am having troubles. i got the dreamweaver site to go up, but i used a .css style sheet and i can't get it to apply to my pages, also i am having errors from folders i set up in sitebuilder. has anyone had trouble with this and figured it out?
Each page that uses a style sheet needs a link in its <head> section pointing to the style sheet.
Could the folder errors have anything to do with relative paths, or maybe you're using absolute paths when relative ones would do better? What are the specific errors?
is putting the style sheet in the <head> section the same as attaching the style sheet to your page? or is this an extra step after attaching the style sheet? i attached the style sheet as a link(as opposed to "import") and everything looks right when i preview in my browser, 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 putting the style sheet in the <head> section the same as attaching the style sheet to your page? |
Yes. I don't know the terminology that might be used by the site builder or Dreamweaver, but basically to tell the browser to use the style sheet to format the page, the <head> section needs a line like this in it:
<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">
|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.
thank you all for your help. i finally figured it all out and now everything is up and running smooth.
importing the style sheet instead of attaching as a link worked and i checked the html and it had put the code in the head section. you guys were right on that one.
public_html would not work for me but if i matched a local folder name to the remote folder i could connect and get files to load but not on the "top"(root folder) so the pages wouldn't load properly.
the biggest problem i was having is yahoo would not show me(i looked for it every way i could think of) the name of the remote root folder and the only way i could find it was by using the remote view in dreamweaver which revealed the folder name. i put that folder name as my host directory which looked like this /foldername/ and everything worked like a dream.
my advice to anyone else with this problem of starting your site with a sitebuilding application and then using a different application later on is to try and clean up your remote folder as best as possible. i needed to keep some of the files so i just made a new folder for the old stuff and dumped everything into there. once i had a clean area, everything started coming together.
thanks again for the advice and direction.