5 Replies Latest reply on May 10, 2006 7:24 PM by Newsgroup_User

    CSS Validation-warnings

    Mr_postman
      Hi,
      My first site in live site and it all validates fine but I get a load of 'warnings' in the CSS, mainly about the lack of backgrounds colours and duplicated colours. Does every element need a colour even if it's :none? And do these warnings matter?
      Any other comments CSS or general will be welcomed, critical or not.

      Thanks
        • 1. Re: CSS Validation-warnings
          Level 7
          Mr postman wrote:

          > Hi,
          > My first site in live http://sherburnfootclinic.co.uk and it all validates
          > fine but I get a load of 'warnings' in the CSS, mainly about the lack of
          > backgrounds colours and duplicated colours. Does every element need a colour
          > even if it's :none? And do these warnings matter?
          > Any other comments CSS or general will be welcomed, critical or not.
          >
          > Thanks
          >
          I can't see anything in either of your two stylesheets that would
          concern me. There are a few redundant css attributes, mainly margin-top:
          0; By default there is no margin or padding on a <div> so theres no real
          need to declare it although if you do it won't do any harm.

          • 2. Re: CSS Validation-warnings
            Level 7
            Mr postman wrote:
            Does every element need a colour
            > even if it's :none? And do these warnings matter?
            > Any other comments CSS or general will be welcomed, critical or not.
            >
            > Thanks
            >

            If you want to do the most you can to ensure your page views as
            expected, the answer is yes: define your bg color as white and your
            text color as black (or whatever). That will override the viewers
            default settings, which out of geekiness or eccentricity they may have
            defined with some other values. In FF I see an undefined background as
            light yellow, for instance, and I've set it up that way so I don't
            forget to do this. (I had hot pink, but so **many** sites don't have
            their background color defined, and it can be hard to read!)
            --
            Bonnie in California
            kroko at
            sbcglobal dot net
            http://www.theanimalrescuesite.com/cgi-bin/WebObjects/CTDSites.woa
            • 3. Re: CSS Validation-warnings
              Level 7
              In article <e3kvcl$2kt$3@forums.macromedia.com>,
              Bonnie <"kroko[Occam]"@sbcglobal.net> wrote:

              > In FF I see an undefined background as
              > light yellow, for instance, and I've set it up that way so I don't
              > forget to do this. (I had hot pink, but so **many** sites don't have
              > their background color defined, and it can be hard to read!)
              > --

              Interesting tip. Safari doesn't give option for user prefs of colours.
              Camino does so I set that to a light pink. Will see what happens

              I get those validating warnings a lot. Sometimes I'll add other times
              I'll ignore and take my chances no one's seeing hot pink.
              • 4. Re: CSS Validation-warnings
                Level 7

                "Raizel" <raizel@idonotuse.com> wrote in message
                news:e3lie3$p3t$2@forums.macromedia.com...
                > In article <e3kvcl$2kt$3@forums.macromedia.com>,
                > Bonnie <"kroko[Occam]"@sbcglobal.net> wrote:
                >
                >> In FF I see an undefined background as
                >> light yellow, for instance, and I've set it up that way so I don't
                >> forget to do this. (I had hot pink, but so **many** sites don't have
                >> their background color defined, and it can be hard to read!)
                >> --
                >
                > Interesting tip. Safari doesn't give option for user prefs of colours.
                > Camino does so I set that to a light pink. Will see what happens

                I've been using a default color for ages in both IE and FF... you'll be
                surprised while surfing how many sites don't have background colors
                defined... makes for interesting viewing ;-)

                --
                Nadia
                Adobe� Community Expert : Dreamweaver
                --------------------------------------------
                http://www.csstemplates.com.au - CSS Templates | Free Templates
                --------------------------------------------
                http://www.DreamweaverResources.com - Dropdown Menu Templates|Tutorials
                http://www.macromedia.com/devnet/dreamweaver/css.html - CSS Tutorials
                -------------------------------------------------


                • 5. Re: CSS Validation-warnings
                  Level 7
                  In article <e3m78q$jha$1@forums.macromedia.com>,
                  ".: Nadia :. ACE :." <forums@NOWAYperrelink.com.au> wrote:

                  > I've been using a default color for ages in both IE and FF... you'll be
                  > surprised while surfing how many sites don't have background colors
                  > defined... makes for interesting viewing ;-)
                  >

                  I always open browsers to default no page. So, now I see pretty pink
                  (Not in Safari though)