![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
Hi folks,
I got a little problem with DW (CS3) lately: It creates files intuitively, for example it will create a file Style.css if include a Style.css in my index file. I do not want this though. Any way to prevent DW from doing this? -- Regards, G. Schnitzelberger |
| Sponsored Links |
|
|||
|
>>if include a Style.css in my index file.
Please explain what that means. -- Walt "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message news:gcdgjc$3lm$00$1@news.t-online.com... > Hi folks, > > I got a little problem with DW (CS3) lately: It creates files intuitively, > for example it will create a file Style.css if include a Style.css in my > index file. > I do not want this though. Any way to prevent DW from doing this? > > -- > Regards, > G. Schnitzelberger |
|
|||
|
Walt F. Schaefer wrote:
>>> if include a Style.css in my index file. > > Please explain what that means. > > "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message > news:gcdgjc$3lm$00$1@news.t-online.com... >> Hi folks, >> >> I got a little problem with DW (CS3) lately: It creates files >> intuitively, for example it will create a file Style.css if include >> a Style.css in my index file. >> I do not want this though. Any way to prevent DW from doing this? A CSS file has to be included like this: <link rel="stylesheet" type="text/css" hrefStyle.css" /> If I put this line into a file (html or php), and save that file, Dreamweaver creates the Style.css (if it doesn`t exist). -- Gruß, G. Schnitzelberger |
|
|||
|
> If I put this line into a file (html or php), and save that file,
> Dreamweaver creates the Style.css (if it doesn`t exist). Ok. And how is that bad? If DW didn't do that you would have a link to nowhere. How would that help? -- Walt "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message news:gcdig6$7db$00$1@news.t-online.com... > Walt F. Schaefer wrote: >>>> if include a Style.css in my index file. >> >> Please explain what that means. >> >> "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message >> news:gcdgjc$3lm$00$1@news.t-online.com... >>> Hi folks, >>> >>> I got a little problem with DW (CS3) lately: It creates files >>> intuitively, for example it will create a file Style.css if include >>> a Style.css in my index file. >>> I do not want this though. Any way to prevent DW from doing this? > > A CSS file has to be included like this: > <link rel="stylesheet" type="text/css" hrefStyle.css" /> > > If I put this line into a file (html or php), and save that file, > Dreamweaver creates the Style.css (if it doesn`t exist). > > -- > Gruß, > G. Schnitzelberger |
|
|||
|
Walt F. Schaefer wrote:
>> If I put this line into a file (html or php), and save that file, >> Dreamweaver creates the Style.css (if it doesn`t exist). > > Ok. And how is that bad? If DW didn't do that you would have a link to > nowhere. How would that help? > > "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message > news:gcdig6$7db$00$1@news.t-online.com... >> Walt F. Schaefer wrote: >>>>> if include a Style.css in my index file. >>> >>> Please explain what that means. >>> >>> "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message >>> news:gcdgjc$3lm$00$1@news.t-online.com... >>>> Hi folks, >>>> >>>> I got a little problem with DW (CS3) lately: It creates files >>>> intuitively, for example it will create a file Style.css if include >>>> a Style.css in my index file. >>>> I do not want this though. Any way to prevent DW from doing this? >> >> A CSS file has to be included like this: >> <link rel="stylesheet" type="text/css" hrefStyle.css" /> >> >> If I put this line into a file (html or php), and save that file, >> Dreamweaver creates the Style.css (if it doesn`t exist). Because I am used to high-level coding, and thatfore used to non-straight-forward including-structures. Just because I state that my CSS file is calle Style.css it does not have to be in that very directory. DW let me decide that in the past, but for some reason it took that decision from me. So do you have actual advice on the topic? -- Gruß, G. Schnitzelberger |
|
|||
|
Advice? Sure. Don't make the link until you have created the CSS file.
Without the file the link has no purpose or value anyway so why create it prematurely? -- Walt "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message news:gcdnq3$td3$02$1@news.t-online.com... > Walt F. Schaefer wrote: >>> If I put this line into a file (html or php), and save that file, >>> Dreamweaver creates the Style.css (if it doesn`t exist). >> >> Ok. And how is that bad? If DW didn't do that you would have a link to >> nowhere. How would that help? >> >> "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message >> news:gcdig6$7db$00$1@news.t-online.com... >>> Walt F. Schaefer wrote: >>>>>> if include a Style.css in my index file. >>>> >>>> Please explain what that means. >>>> >>>> "G. Schnitzelberger" <g.schnitzelberger@gmail.com> wrote in message >>>> news:gcdgjc$3lm$00$1@news.t-online.com... >>>>> Hi folks, >>>>> >>>>> I got a little problem with DW (CS3) lately: It creates files >>>>> intuitively, for example it will create a file Style.css if include >>>>> a Style.css in my index file. >>>>> I do not want this though. Any way to prevent DW from doing this? >>> >>> A CSS file has to be included like this: >>> <link rel="stylesheet" type="text/css" hrefStyle.css" /> >>> >>> If I put this line into a file (html or php), and save that file, >>> Dreamweaver creates the Style.css (if it doesn`t exist). > > Because I am used to high-level coding, and thatfore used to > non-straight-forward including-structures. > Just because I state that my CSS file is calle Style.css it does not have > to be in that very directory. > DW let me decide that in the past, but for some reason it took that > decision from me. > > So do you have actual advice on the topic? > > -- > Gruß, > G. Schnitzelberger |
|
|||
|
Walt F. Schaefer wrote:
> Advice? Sure. Don't make the link until you have created the CSS file. > Without the file the link has no purpose or value anyway so why > create it prematurely? So you still don`t understand, huh? :-) Ok, check this out: I got a file x.php, which links to the file style.css. style.css is not located in the same directory. Here is the but: x.php gets included in y.php, which is one level higher. style.css is in the same dir as y.php. So the path is correct now. But: DW creates a file style.css in x.php`s dir, which will never be usded. Got it now? I am really looking for help here... -- Gruß, G. Schnitzelberger |
|
|||
|
On Tue, 7 Oct 2008 18:35:56 +0200, "G. Schnitzelberger"
<g.schnitzelberger@gmail.com> wrote: >Ok, check this out: I got a file x.php, which links to the file style.css. >style.css is not located in the same directory. >Here is the but: x.php gets included in y.php, which is one level higher. >style.css is in the same dir as y.php. So the path is correct now. >But: DW creates a file style.css in x.php`s dir, which will never be usded. I'm not sure that I understand either, but I use a lot of PHP includes. I always make any links in include files as site root relative links. That way they will work regardless of where the file gets included. Gary |
|
|||
|
Gary White wrote:
> On Tue, 7 Oct 2008 18:35:56 +0200, "G. Schnitzelberger" > <g.schnitzelberger@gmail.com> wrote: > >> Ok, check this out: I got a file x.php, which links to the file >> style.css. style.css is not located in the same directory. >> Here is the but: x.php gets included in y.php, which is one level >> higher. style.css is in the same dir as y.php. So the path is >> correct now. >> But: DW creates a file style.css in x.php`s dir, which will never be >> usded. > > I'm not sure that I understand either, but I use a lot of PHP > includes. I always make any links in include files as site root > relative links. That way they will work regardless of where the file > gets included. Jep, that works for sure. Not flexible enough for me though. If you`re moving depth-wise you gotta change your links... And again: DW did not always do that. So there must be a way for me :-) -- Gruß, G. Schnitzelberger |
|
|||
|
On Tue, 7 Oct 2008 19:45:37 +0200, "G. Schnitzelberger"
<g.schnitzelberger@gmail.com> wrote: >Jep, that works for sure. Not flexible enough for me though. >If you`re moving depth-wise you gotta change your links... Okay, then I was right. I don't understand because a root relative link will always be correct for me. Gary |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise