18 Replies Latest reply on Oct 2, 2007 10:18 AM by Newsgroup_User

    CSS Query

    simey70
      Hello,

      I have just finsiehd the 1st of 10 pages of a site - To save me time with formatting etc, i want to use CSS, but only what it does, not how to use it.

      From the page i have already made, is there a way to make a style sheet from that ?

      thanks in advance
        • 1. Re: CSS Query
          Level 7
          > From the page i have already made, is there a way to make a style sheet
          > from
          > that ?

          There's no automatic way to do that.

          -Darrel


          • 2. Re: CSS Query
            Level 7
            simey70 wrote:
            > Hello,
            >
            > I have just finsiehd the 1st of 10 pages of a site - To save me time with
            > formatting etc, i want to use CSS, but only what it does, not how to use it.
            >
            > From the page i have already made, is there a way to make a style sheet from
            > that ?
            >
            > thanks in advance
            >
            Switch to code view and look for all the css style you have used in the
            head section of your page.

            They will be between the <style type="text/css"> </style> tags

            Cut them all and paste into a new Dreamweaver document and save it as
            global.css into your site root folder.

            Next create a new DW document and save it as 'page_2.htm' or whatever
            you want to call it.

            With the 'page_2.htm' open go Window>CSS Styles>Click the little icon
            which depicts a link

            Browse to your global.css file select it and click OK

            Your stylesheet should now be attached to your new page.
            • 3. CSS Query
              stefan_we.
              There actually is: just use file > export > css and type in the name of the external CSS you would like to create. To get a clue what CSS is all about I always recommend


              Stu Nicholls CSSplay
              • 4. Re: CSS Query
                Level 7
                stefan we. wrote:
                > There actually is: just use file > export > css and type in the name of the
                > external CSS you would like to create. To get a clue what CSS is all about I
                > always recommend http://www.cssplay.co.uk/http://www.cssplay.co.uk/. Have fun.
                >
                >
                >
                > http://www.stefanweisshampel.de
                >

                Thats a new one to me but it certainly works.
                • 5. Re: CSS Query
                  Level 7
                  I think you are reading too much into the original post. It sounds to me
                  like the OP has a page and wants to use DW to automatically create a
                  stylesheet from the page's layout. If that's the case, then the answer is
                  NO.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (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
                  ==================


                  "stefan we." <webforumsuser@macromedia.com> wrote in message
                  news:fdtgmm$fl5$1@forums.macromedia.com...
                  > There actually is: just use file > export > css and type in the name of
                  > the
                  > external CSS you would like to create. To get a clue what CSS is all about
                  > I
                  > always recommend http://www.cssplay.co.uk/http://www.cssplay.co.uk/. Have
                  > fun.
                  >
                  >
                  >
                  > http://www.stefanweisshampel.de
                  >


                  • 6. Re: CSS Query
                    Level 7
                    Murray *ACE* wrote:
                    > I think you are reading too much into the original post. It sounds to me
                    > like the OP has a page and wants to use DW to automatically create a
                    > stylesheet from the page's layout. If that's the case, then the answer is
                    > NO.
                    >
                    A couple of clicks is not far short of it though....I mean its nearly
                    automatic....can't get much closer.
                    • 7. Re: CSS Query
                      Level 7
                      > Thats a new one to me but it certainly works.

                      Huh! Cool.

                      -Darrel


                      • 8. Re: CSS Query
                        Level 7
                        Not if the original pages contain NO CSS, Os.

                        --
                        Murray --- ICQ 71997575
                        Adobe Community Expert
                        (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
                        ==================


                        "Osgood" <notavailable@thisaddress.com> wrote in message
                        news:fdtj65$i7c$1@forums.macromedia.com...
                        > Murray *ACE* wrote:
                        >> I think you are reading too much into the original post. It sounds to me
                        >> like the OP has a page and wants to use DW to automatically create a
                        >> stylesheet from the page's layout. If that's the case, then the answer
                        >> is NO.
                        >>
                        > A couple of clicks is not far short of it though....I mean its nearly
                        > automatic....can't get much closer.


                        • 9. Re: CSS Query
                          Level 7
                          Murray *ACE* wrote:
                          > Not if the original pages contain NO CSS, Os.
                          >
                          Hummm...... well I'm detecting from the post that maybe it does...but I
                          don't know for sure just second guessing really.

                          I just get the feeling that the OP hasn't linked a styleheet to the
                          original page and DW is writing all the css styles to the head of the
                          page. Now the OP wants to now move it out to a stylesheet for the other
                          pages.

                          But I could be miles off the mark...like I usually am lol
                          • 10. CSS Query
                            stefan_we. Level 1
                            quote:

                            Originally posted by: simey70
                            Hello,

                            I have just finsiehd the 1st of 10 pages of a site - To save me time with formatting etc, i want to use CSS, but only what it does, not how to use it.

                            From the page i have already made, is there a way to make a style sheet from that ?

                            thanks in advance


                            That is excactly what my answer is aiming at --> creating a css-file based on the layout work simey70 has already done. And I don't think tha he/she has switched of the css option. If so, the posting would have been 'how to create a css-file from a none-css layout.'
                            • 11. Re: CSS Query
                              Level 7
                              The answer is NO. There is no way to do that. You would have to create the
                              stylesheet yourself.

                              --
                              Murray --- ICQ 71997575
                              Adobe Community Expert
                              (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
                              ==================


                              "stefan we." <webforumsuser@macromedia.com> wrote in message
                              news:fdtmj7$m7r$1@forums.macromedia.com...
                              >
                              quote:

                              Originally posted by: simey70
                              > Hello,
                              >
                              > I have just finsiehd the 1st of 10 pages of a site - To save me time with
                              > formatting etc, i want to use CSS, but only what it does, not how to use
                              > it.
                              >
                              > From the page i have already made, is there a way to make a style sheet
                              > from
                              > that ?
                              >
                              > thanks in advance

                              >
                              > That is exceactly what my answer is aiming at --> creating a css-file
                              > based on
                              > the layout work simey70 has already done.
                              >


                              • 12. Re: CSS Query
                                Level 7
                                Osgood wrote:
                                > Murray *ACE* wrote:
                                >> Not if the original pages contain NO CSS, Os.
                                >>
                                > Hummm...... well I'm detecting from the post that maybe it does...but I
                                > don't know for sure just second guessing really.
                                >
                                > I just get the feeling that the OP hasn't linked a styleheet to the
                                > original page and DW is writing all the css styles to the head of the
                                > page. Now the OP wants to now move it out to a stylesheet for the other
                                > pages.
                                >
                                > But I could be miles off the mark...like I usually am lol

                                Dreamweaver by default uses styles doesn't it? I have seen many page
                                attempts scattered with styles all over the place, with the user saying
                                they didn't do anything...it was Dreamweaver. Not sure what use
                                exporting these would be, as there is no structure to it.

                                Steve
                                • 13. Re: CSS Query
                                  Level 7
                                  Murray *ACE* wrote:
                                  > The answer is NO. There is no way to do that. You would have to create the
                                  > stylesheet yourself.
                                  >
                                  Yeah but you can do that easily as stefan has pointed out from the css
                                  already used on the first page.

                                  In my view almost automatically.......it took me about 10 seconds
                                  whereas if I was to collect all the css styles from the page, create
                                  another file, paste and save it would take considerably longer.
                                  • 14. Re: CSS Query
                                    Level 7
                                    OMG - you are not understanding. The page *HAS NO CSS*. It's a layout
                                    without CSS. OP is asking if there's a way to get DW to write the CSS based
                                    on the layout.

                                    --
                                    Murray --- ICQ 71997575
                                    Adobe Community Expert
                                    (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
                                    ==================


                                    "Osgood" <notavailable@thisaddress.com> wrote in message
                                    news:fdtqdf$qac$2@forums.macromedia.com...
                                    > Murray *ACE* wrote:
                                    >> The answer is NO. There is no way to do that. You would have to create
                                    >> the stylesheet yourself.
                                    >>
                                    > Yeah but you can do that easily as stefan has pointed out from the css
                                    > already used on the first page.
                                    >
                                    > In my view almost automatically.......it took me about 10 seconds whereas
                                    > if I was to collect all the css styles from the page, create another file,
                                    > paste and save it would take considerably longer.


                                    • 15. Re: CSS Query
                                      Level 7
                                      Murray *ACE* wrote:
                                      > OMG - you are not understanding. The page *HAS NO CSS*.

                                      The OP doesn't actually say that.... not the way Im reading it or
                                      obviously stefan.

                                      It actually reads to me as though there IS css on the page that they
                                      want to turn into a stylesheet for the other pages.


                                      It's a layout
                                      > without CSS. OP is asking if there's a way to get DW to write the CSS based
                                      > on the layout.

                                      A layout without css....whats he using then? Gotta be using something to
                                      layout the page if he likes it so much. If its a new version of DW thats
                                      got to be css hasn't it?

                                      <shrug>
                                      • 16. Re: CSS Query
                                        Level 7
                                        OP says -

                                        > I have just finsiehd the 1st of 10 pages of a site - To save me time with
                                        > formatting etc, i want to use CSS

                                        "want to use CSS" to save time.

                                        OP wants to take this page that he has built with DW (presumably with tables
                                        and perhaps layers) and ask DW to write the CSS for the layout.

                                        --
                                        Murray --- ICQ 71997575
                                        Adobe Community Expert
                                        (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
                                        ==================


                                        "Osgood" <notavailable@thisaddress.com> wrote in message
                                        news:fdtscb$stj$1@forums.macromedia.com...
                                        > Murray *ACE* wrote:
                                        >> OMG - you are not understanding. The page *HAS NO CSS*.
                                        >
                                        > The OP doesn't actually say that.... not the way Im reading it or
                                        > obviously stefan.
                                        >
                                        > It actually reads to me as though there IS css on the page that they want
                                        > to turn into a stylesheet for the other pages.
                                        >
                                        >
                                        > It's a layout
                                        >> without CSS. OP is asking if there's a way to get DW to write the CSS
                                        >> based on the layout.
                                        >
                                        > A layout without css....whats he using then? Gotta be using something to
                                        > layout the page if he likes it so much. If its a new version of DW thats
                                        > got to be css hasn't it?
                                        >
                                        > <shrug>


                                        • 17. Re: CSS Query
                                          Level 7
                                          Murray *ACE* wrote:
                                          > OP says -
                                          >
                                          >> I have just finsiehd the 1st of 10 pages of a site - To save me time with
                                          >> formatting etc, i want to use CSS
                                          >
                                          > "want to use CSS" to save time.
                                          >
                                          > OP wants to take this page that he has built with DW (presumably with tables
                                          > and perhaps layers) and ask DW to write the CSS for the layout.
                                          >


                                          Yeah but what Im saying is we dont exactly know that much.

                                          If its a newer version of DW then that writes css styles to the head of
                                          the page does it not?

                                          If the user is using font/bgcolor tags or inline css tags then obviously
                                          its a procedure which needs to be executed manually but its not exactly
                                          clear how they have constructed the first page.
                                          • 18. Re: CSS Query
                                            Level 7
                                            > If its a newer version of DW then that writes css styles to the head of
                                            > the page does it not?

                                            Yes, but only if you have USED CSS, and you have the PREFERENCES set to use
                                            CSS instead of HTML styling.

                                            > its not exactly clear how they have constructed the first page.

                                            Yeah - there's the problem.

                                            --
                                            Murray --- ICQ 71997575
                                            Adobe Community Expert
                                            (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
                                            ==================


                                            "Osgood" <notavailable@thisaddress.com> wrote in message
                                            news:fdttel$rd$1@forums.macromedia.com...
                                            > Murray *ACE* wrote:
                                            >> OP says -
                                            >>
                                            >>> I have just finsiehd the 1st of 10 pages of a site - To save me time
                                            >>> with formatting etc, i want to use CSS
                                            >>
                                            >> "want to use CSS" to save time.
                                            >>
                                            >> OP wants to take this page that he has built with DW (presumably with
                                            >> tables and perhaps layers) and ask DW to write the CSS for the layout.
                                            >>
                                            >
                                            >
                                            > Yeah but what Im saying is we dont exactly know that much.
                                            >
                                            > If its a newer version of DW then that writes css styles to the head of
                                            > the page does it not?
                                            >
                                            > If the user is using font/bgcolor tags or inline css tags then obviously
                                            > its a procedure which needs to be executed manually but its not exactly
                                            > clear how they have constructed the first page.