![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Now do the same thing again, only this time when you link to the stylesheet the first time, make sure you are set to Relative To: Document. |
#12
| |||
| |||
|
|
OK, I've looked around, but can't seem to figure out how to set that Relative To: Document |
#13
| |||
| |||
|
|
Code in template: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" Code in child from template: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" |
|
Now if I change the template code to: link rel="stylesheet" href="../emx_nav_right.css" type="text/css" Code in template: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" Code in child from template: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" |
|
Sorry if I seem dense. I went through the whole process again. This time I defined a remote site: Select Dreamweaver Site from the start page Name the site TestingLinking No, I do not want to use a server technology. Edit local copies on my machine, then upload to server when ready (recommended) Store the files here c:\Sites\TestingLinking\ How do you connect to remote server? FTP Hostname: home.anavoc.us What folder on your server do you want to store your files in? Left this field blank (is this a problem?) Entered FTP login and password Connection tests successfully No, do not enable check in and check out Back to start page Create from samples: Page Designs (CSS): Halo Right Nav Save page as main.htm in C:\Sites\TestingLinking\ (copy dependent files when prompted) Then execute command: Make Template, accepting defaults, that is, file name main in site TestingLinking Update links when prompted Select the paragraph text below the "Feature Title" text and make it editable region: Region_Test Save All and Close the file Now: File:New Select Templates tab Select Site "TestingLinking" Select "main" Click "Create" Save as "Test_A.htm" Open "Test_A.htm", view in IE note loss of stylesheet link. At this point: Code in original main.htm: link rel="stylesheet" href="emx_nav_right.css" type="text/css" Code in template: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" Code in child from template: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" Now if I change the template code to: link rel="stylesheet" href="../emx_nav_right.css" type="text/css" All the previous child files update to: link rel="stylesheet" href="emx_nav_right.css" type="text/css" But a new child from the template looks like this: link rel="stylesheet" href="/emx_nav_right.css" type="text/css" |
#14
| |||
| |||
|
#15
| |||
| |||
|
|
Thanks Murray for your patient assistance! It looks like if I link the stylesheet to the htm page by browsing to the stylesheet first (relative to: Document) THEN make the template, the linking issues go away. I still don't understand why, though. The htm page seems to be already linked to the stylesheet through the process of creating the page/stylesheet to begin with. The code in the html doesn't look any different to me. Is there somewhere in the html code where the relative to: property is set? |
![]() |
| Thread Tools | |
| Display Modes | |
| |