9 Replies Latest reply on Aug 15, 2006 8:33 AM by Newsgroup_User

    Multiple Style Sheets

    engmix Level 1
      Hi,
      Q: If you are developing a site with 5-10 pages, and for the most part look completely different. Are you setting up a style sheet for each page? Or do you add a second style sheet along with the main sheet to the page? Or do you put all of the code for every page on one sheet?

      Thanks
        • 1. Re: Multiple Style Sheets
          Level 7
          If each page used completely different styles (I am skeptical, frankly),
          then using external vs. embedded would have no advantage.

          --
          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
          ==================


          "engmix" <webforumsuser@macromedia.com> wrote in message
          news:ebqe13$736$1@forums.macromedia.com...
          > Hi,
          > Q: If you are developing a site with 5-10 pages, and for the most part
          > look
          > completely different. Are you setting up a style sheet for each page? Or
          > do you
          > add a second style sheet along with the main sheet to the page? Or do you
          > put
          > all of the code for every page on one sheet?
          >
          > Thanks
          >


          • 2. Re: Multiple Style Sheets
            Level 7
            On Mon, 14 Aug 2006 14:07:38 -0400, "Murray *ACE*"
            <forums@HAHAgreat-web-sights.com> wrote:

            >If each page used completely different styles (I am skeptical, frankly),
            >then using external vs. embedded would have no advantage.


            Actually, putting the style in the page source would result in one fewer
            http requests and, in theory, would be faster to download.

            Gary
            • 3. Re: Multiple Style Sheets
              engmix Level 1
              I see your point Murray.

              Gary, does this mean you are usually embedding your css code? Since you say embedded code is a quicker download?

              Do you both often use "absolute positioned" divs in your layouts? Or do you mostly float and then nudge with padding to get your final placemeant? I know this is a very general and simplified question, but, would like to know.
              • 4. Re: Multiple Style Sheets
                Level 7
                'quicker' by a few nanoseconds, probably. And it would only be quicker in
                this specific instance where each page had a unique set of styles.

                --
                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
                ==================


                "engmix" <webforumsuser@macromedia.com> wrote in message
                news:ebqndo$icg$1@forums.macromedia.com...
                >I see your point Murray.
                >
                > Gary, does this mean you are usually embedding your css code? Since you
                > say
                > embedded code is a quicker download?
                >
                > Do you both often use "absolute positioned" divs in your layouts? Or do
                > you
                > mostly float and then nudge with padding to get your final placemeant? I
                > know
                > this is a very general and simplified question, but, would like to know.
                >


                • 5. Re: Multiple Style Sheets
                  Level 7
                  On Mon, 14 Aug 2006 20:45:44 +0000 (UTC), "engmix"
                  <webforumsuser@macromedia.com> wrote:

                  > Gary, does this mean you are usually embedding your css code? Since you say
                  >embedded code is a quicker download?

                  You are taking something I said and using it out of context. What I said
                  was that, in this specific instance where the styles are different on
                  every page, it would be theoretically quicker to use embedded styles.
                  Even then, the difference will be very small unless it's a very busy
                  page viewed over a slow connection.

                  I rarely ever have that situation. I'm always looking for a bit of
                  consistency between pages, so most of the styles will be the same from
                  page to page. In that case, I use an external style sheet so the browser
                  can cache it and not have to download it for every page.


                  > Do you both often use "absolute positioned" divs in your layouts? Or do you
                  >mostly float and then nudge with padding to get your final placemeant? I know
                  >this is a very general and simplified question, but, would like to know.

                  I cannot remember the last time I used absolute positioning for
                  anything.

                  Gary
                  • 6. Re: Multiple Style Sheets
                    engmix Level 1
                    Why is absolute positioning a bad form of design? That isn't exactly what you said Gary, but since you said you haven't used them for how ever long you said it was, I assume you feel that it's not the best way to design using css.
                    • 7. Re: Multiple Style Sheets
                      Level 7
                      On Tue, 15 Aug 2006 03:59:56 +0000 (UTC), "engmix"
                      <webforumsuser@macromedia.com> wrote:

                      >Why is absolute positioning a bad form of design? That isn't exactly what you
                      >said Gary, but since you said you haven't used them for how ever long you said
                      >it was, I assume you feel that it's not the best way to design using css.


                      The short answer is that when used as your main form of layout, absolute
                      positioning it so very easily destroyed when someone re-sizes the text
                      in their browser window. Objects that are positioned absolutely do not
                      respond to changes in other page elements, thus you wind up with
                      overlapping text. For a bit longer and more detailed explanation:
                      http://apptools.com/examples/pagelayout101.php

                      Gary
                      • 8. Re: Multiple Style Sheets
                        engmix Level 1
                        Thanks for the explanation Gary. I just re-did my layout without using absolute positioning. Everything looks great in my mac, in the standard browsers. But, here we go, IE 6 in PC, the layout breaks? So frustrating. If you don't mind my changing up the topic, I would appreciate it if you could check my work?

                        http://globalvisiondesigns.com/index.html
                        http://globalvisiondesigns.com/engineroom.css
                        • 9. Re: Multiple Style Sheets
                          Level 7
                          On Tue, 15 Aug 2006 07:44:39 +0000 (UTC), "engmix"
                          <webforumsuser@macromedia.com> wrote:

                          >Thanks for the explanation Gary. I just re-did my layout without using absolute
                          >positioning. Everything looks great in my mac, in the standard browsers. But,
                          >here we go, IE 6 in PC, the layout breaks? So frustrating. If you don't mind my
                          >changing up the topic, I would appreciate it if you could check my work?


                          Sorry, no time right now. If someone else doesn't jump in here, perhaps
                          I can look later.

                          Gary