HighDots Forums  

Re: CSS stylesheet works in DW, failure in browserr

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: CSS stylesheet works in DW, failure in browserr in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tanelorn
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 11:42 AM






Allright, well I did get them to work. THe issue was, I was converting a
client's old webpage over to a new format. The junk that came along with it
caused the styles not to be loaded into the page properly. Starting from an
absolutely fresh page, and removing the / that Dreamweaver automatically adds
to the pathname solved the problem. Thanks for your help.


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 11:50 AM






DW only automatically adds this if you tell it to, you know?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Tanelorn" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Allright, well I did get them to work. THe issue was, I was converting a
client's old webpage over to a new format. The junk that came along with
it
caused the styles not to be loaded into the page properly. Starting from
an
absolutely fresh page, and removing the / that Dreamweaver automatically
adds
to the pathname solved the problem. Thanks for your help.




Reply With Quote
  #3  
Old   
Alan
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 11:52 AM





Quote:
and removing the / that Dreamweaver automatically adds
to the pathname

See this older message, especially the part at *********To Change This

canned letter #7

it's because you are using Site Root relative paths {they always start with
a leading / slash }, and then either trying to directly view the files from
your hard drive, which is happening when clicking a link on a dreamweaver
"Preview in Browser" page, or you are hosted in a subfolder of a domain like
http://myhost.com/~mysite/

Site Root relative paths won't work in those cases- in the first case
because site root is different than drive root, in the later because the
domain is the site root, not your subfolder.

If that's the reason- change to Document Relative paths if you want the
pages to preview when viewing directly from your hard drive.

*Also- if this site is hosted in a subfolder of a domain, like
http://myhost.com/mysite/ you should Not use site root relative paths with
dreamweaver- they will come out wrong when the files are uploaded.

The point to file and Insert image uses the Last linking method you have
chosen.

******To change linking methods********
select an existing image or link on the page.
in the Property inspector, click the folder icon, to open the "Browse to
File" dialog box. On the lower part of that dialog box is a pulldown, to
choose "Site Root Relative" or "Relative to Document"
Put it on "Relative to Document"
Finish picking the correct file, and click okay.

That setting will now stay that way until it's changed.
When you use the point to file tool, it will use that method of linking.

If you want to quickly change links to a different linking method- install
the Relativity Extension.
http://e7x.com/dw/ Relativity ext.
or here
http://www.microwaved.plus.com/dw/






Reply With Quote
  #4  
Old   
FizzC
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 11:58 AM



Quick question - I had the same problem...CSS wasn't translating to the browser
in Preview for a local site.

I removed the / and all is well - I frequently remove iot for image
paths...can someone explain why that is there? I just don't understand it.

Thanks!


Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 12:26 PM



See Alan's message. It's most likely because you are dragging and dropping
images on the page instead of browsing to them. Read these -

http://www.macromedia.com/support/dreamweaver/ts/documents/site_root_rel.htm
http://www.macromedia.com/support/dreamweaver/ts/documents/document_vs_site.htm


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"FizzC" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Quick question - I had the same problem...CSS wasn't translating to the
browser
in Preview for a local site.

I removed the / and all is well - I frequently remove iot for image
paths...can someone explain why that is there? I just don't understand it.

Thanks!




Reply With Quote
  #6  
Old   
FizzC
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 12:42 PM



Thanks! I'll read it all. I'm really new to DW...it's daunting - but I can already see the payoff.



Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS stylesheet works in DW, failure in browserr - 09-01-2004 , 12:44 PM



Get yourself a good book - it'll help LOTS.

Check these out:

Dreamweaver MX 2004: The Missing Manual - by David Sawyer McFarland
http://www.amazon.com/exec/obidos/tg/detail/-/0596006314/qid=1074863466//ref=sr_8_xs_ap_i2_xgl14/102-1685038-4464901?v=glance&s=books&n=507846

Depending on your technical expertise, the following could become one of
your most useful references -

Dreamweaver MX 2004 Bible - by Joseph Lowery
http://www.amazon.com/exec/obidos/tg/detail/-/0764543504/qid=1074863444//ref=sr_8_xs_ap_i8_xgl14/102-1685038-4464901?v=glance&s=books&n=507846

Dreamweaver MX 2004: The Complete Reference, Second Edition
http://www.amazon.com/exec/obidos/tg/detail/-/0072229438/qid=1074863710//ref=sr_8_xs_ap_i10_xgl14/102-1685038-4464901?v=glance&s=books&n=507846

And finally, you will *definitely* want this one once you get to speed!

Dreamweaver MX 2004 Magic - by Massimo Foti, Angela Buraglia, and Dan Short
(with help from their friends)
http://www.amazon.com/exec/obidos/tg/detail/-/0735713782/qid=1074863444//ref=sr_8_xs_ap_i10_xgl14/102-1685038-4464901?v=glance&s=books&n=507846

In addition, I can't praise this one highly enough -

http://www.projectseven.com/foundations/index.htm



--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"FizzC" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks! I'll read it all. I'm really new to DW...it's daunting - but I can
already see the payoff.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.