| | |
|
|
|
Two questions please: |
| message from trufla on 23 Jul 2004 |
The first: CSS, I am using it to format my website and I am locally testing the
pages at the moment on apache(using php).
Problem: When I return to the last page I visited all the css formatting is
lost. ?
The second: How do you increase the number of lines in a textarea object
without the changes physically appearing?
I.E. so the text area looks like 1 line.
|
| Murray *TMM* replied to trufla on 23 Jul 2004 |
This is how DMX will work if you are using ROOT RELATIVE links, *and*
temporary files to preview.
Here's an example -
* I create a page with a link to an image -> <img src="/images/foo.gif">
(note that the image link is a root relative link)
* I preview that page with DMX (since I am using temp files, DMX is kind
enough to realize that root relative links won't work in a preview, and so
it converts them to document relative links when it builds the temporary
file for the preview) -> <img src="../images/foo.gif"> (I'm assuming that
your document is one level below the root of the site). In the preview,
this page looks fine because the browser has no trouble with the document
relative link - it knows where the file it just opened is, and can follow
the path to the image).
* I then click on a link in the previewed page to another page that also has
ROOT relative linked images --> <img src="/images/bar.gif"> and suddenly
the image does not load.
Why? Because when you click away from the temp file DMX just built for you,
you have lost the benefit of the automatic conversion that DMX does with
root relative links, and the browser looks for this new image starting from
the root of the hard drive, not the root of your site.
The solution is to not use root relative links, and to change all your
existing ones to document relative.
To read more about this, go here -
http://www.macromedia.com/support/dreamweaver/ts/documents/site_root_rel.htm
I dunno.
|
|
Archived message: Two questions please: (Macromedia Dreamweaver Web Design)