7 Replies Latest reply on Sep 8, 2007 1:35 PM by Newsgroup_User

    Two colors -two body tags

    Hydrowizard Level 1
      There are two colors one for the body on the html, body "tag" (is that what do you call it?) for body and then another one on the next "tag". Is this right? Should I get rid of the first one? TIA

      html, body {
      background-color : #fff;
      color : #000;
      margin : 0;
      padding : 0;
      }
      body {
      font : 100% tahoma, arial, sans-serif;
      color : #4d4d4d;
      text-align : center;
      }
        • 1. Re: Two colors -two body tags
          Level 7
          You can if you want. The second one will have a higher specificity.

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


          "Hydrowizard" <webforumsuser@macromedia.com> wrote in message
          news:fbsi41$l0q$1@forums.macromedia.com...
          > There are two colors one for the body on the html, body "tag" (is that
          > what do
          > you call it?) for body and then another one on the next "tag". Is this
          > right?
          > Should I get rid of the first one? TIA
          >
          > html, body {
          > background-color : #fff;
          > color : #000;
          > margin : 0;
          > padding : 0;
          > }
          > body {
          > font : 100% tahoma, arial, sans-serif;
          > color : #4d4d4d;
          > text-align : center;
          > }
          >


          • 2. Re: Two colors -two body tags
            Level 7
            Hydrowizard escreveu:
            > There are two colors one for the body on the html, body "tag" (is that what do
            > you call it?) for body and then another one on the next "tag". Is this right?
            > Should I get rid of the first one? TIA
            >
            > html, body {
            > background-color : #fff;
            > color : #000;
            > margin : 0;
            > padding : 0;
            > }
            > body {
            > font : 100% tahoma, arial, sans-serif;
            > color : #4d4d4d;
            > text-align : center;
            > }
            >
            ---------------------
            See this article:
            http://www.webcredible.co.uk/user-friendly-resources/css/hacks-browser-detection.shtml

            --
            zerof
            http://www.educar.pro.br/
            Apache - PHP - MySQL - Boolean Logics - Project Management
            ----------------------------------------------------------
            You must hear, always, one second opinion! In all cases.
            ----------------------------------------------------------
            Let the people know if this info was useful for you!
            ----------------------------------------------------------
            • 3. Re: Two colors -two body tags
              Level 7
              What does that have to do with anything? And written in 2005? You must be
              joking....

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


              "zerof" <zerof.one@gmail.com> wrote in message
              news:fbu5eb$d9p$1@forums.macromedia.com...
              > Hydrowizard escreveu:
              >> There are two colors one for the body on the html, body "tag" (is that
              >> what do you call it?) for body and then another one on the next "tag". Is
              >> this right? Should I get rid of the first one? TIA
              >>
              >> html, body {
              >> background-color : #fff;
              >> color : #000;
              >> margin : 0;
              >> padding : 0;
              >> }
              >> body {
              >> font : 100% tahoma, arial, sans-serif;
              >> color : #4d4d4d;
              >> text-align : center;
              >> }
              >>
              > ---------------------
              > See this article:
              > http://www.webcredible.co.uk/user-friendly-resources/css/hacks-browser-detection.shtml
              >
              > --
              > zerof
              > http://www.educar.pro.br/
              > Apache - PHP - MySQL - Boolean Logics - Project Management
              > ----------------------------------------------------------
              > You must hear, always, one second opinion! In all cases.
              > ----------------------------------------------------------
              > Let the people know if this info was useful for you!
              > ----------------------------------------------------------


              • 4. Re: Two colors -two body tags
                Hydrowizard Level 1
                Higher specificity?
                • 5. Re: Two colors -two body tags
                  Level 7
                  Murray *ACE* escreveu:
                  > What does that have to do with anything? And written in 2005? You must be
                  > joking....
                  >
                  ----
                  Not joking, absolutely!

                  It has, still, much people that do not know what does the "css child
                  selector"; not mattering, that the article has been written in 2005.

                  --
                  zerof
                  http://www.educar.pro.br/
                  Apache - PHP - MySQL - Boolean Logics - Project Management
                  ----------------------------------------------------------
                  Você deve, sempre, consultar uma segunda opinião!
                  ----------------------------------------------------------
                  Deixe todos saberem se esta informação foi-lhe útil.
                  ----------------------------------------------------------
                  You must hear, always, one second opinion! In all cases.
                  ----------------------------------------------------------
                  Let the people know if this info was useful for you!
                  ----------------------------------------------------------
                  • 6. Re: Two colors -two body tags
                    Level 7
                    Murray *ACE* escreveu:
                    > What does that have to do with anything? And written in 2005? You must be
                    > joking....
                    >
                    ---------------
                    SORRY, my answer does not make sense.
                    The question not aplly to chid selector.
                    S O R R Y!
                    --
                    zerof
                    http://www.educar.pro.br/
                    Apache - PHP - MySQL - Boolean Logics - Project Management
                    ----------------------------------------------------------
                    Você deve, sempre, consultar uma segunda opinião!
                    ----------------------------------------------------------
                    Deixe todos saberem se esta informação foi-lhe útil.
                    ----------------------------------------------------------
                    You must hear, always, one second opinion! In all cases.
                    ----------------------------------------------------------
                    Let the people know if this info was useful for you!
                    ----------------------------------------------------------
                    • 7. Re: Two colors -two body tags
                      Level 7
                      That means it will supersede the previous rule - in other words, the color
                      with be taken from the second body rule.

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


                      "Hydrowizard" <webforumsuser@macromedia.com> wrote in message
                      news:fbus84$73b$1@forums.macromedia.com...
                      > Higher specificity?
                      >