We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    Ok, I tried searching for it for awhile, but I can’t remember enough keywords to search anything meaningful. There was a thread awhile back in which Ryan posted the makings of all his stylesheets. Basically it was all the stuff that is reset to 0 so that there is cross-browser consistency. I was wanting to bookmark that thread (not sure why I didn’t earlier).

    Jesse
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 6726
      • 7,075 Posts
      All the things reset to zero ?

      I guess there’s more to what you’re looking for than

      * {padding: 0;
      margin: 0;
      }


      If you’re talking IE hacks or such, there are dozens of them...
      Probably Ryan will remember and unfreeze the situation for you !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 14050
        • 788 Posts
        It wasn’t resetting everything to 0, because some stuff you want to have some values for. It was basically how he started every stylesheet of his.
          Jesse R.
          Consider trying something new and extraordinary.
          Illinois Wine

          Have you considered donating to MODx lately?
          Donate now. Every contribution helps.
          • 32319
          • 129 Posts
          Pretty sure this is what your looking for.

          http://developer.yahoo.com/yui/reset/
            "Regret for the things we did can be tempered by time; it is regret for the things we did not do that is inconsolable."
            -- Sydney Harris
            • 6726
            • 7,075 Posts
            Quote from: jesster444 at Mar 29, 2007, 09:53 PM
            It wasn’t resetting everything to 0, because some stuff you want to have some values for. It was basically how he started every stylesheet of his.

            This is a hint that we are talking about the same thing a single declaration which makes sures to get rid of inherited margins and paddings, which most of us put right at the top of our CSS...

            Quote from: Whitefen at Mar 29, 2007, 10:16 PM
            Pretty sure this is what your looking for. http://developer.yahoo.com/yui/reset/

            Which brings us back to the basics I first offered,

            body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {  
            margin:0; 
            padding:0; 
            } 


            is basically the same as

            * {padding: 0;
            margin: 0;
            }


            or it should * being the universal selector...

            The rest is very handy too but not always needed...


              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id
              • 25663 MODX Staff
              • 12,272 Posts
              Actually David, I specifically don’t do a star reset everything on purpose. smiley

              http://modxcms.com/forums/index.php/topic,9843.msg67728.html#msg67728
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 14050
                • 788 Posts
                Ryan,

                Thank you! That is exactly what I was looking for. "Neutralize CSS" probably would have worked, although the title of that topic would have been a little misleading.
                  Jesse R.
                  Consider trying something new and extraordinary.
                  Illinois Wine

                  Have you considered donating to MODx lately?
                  Donate now. Every contribution helps.
                  • 6726
                  • 7,075 Posts
                  Quote from: rthrash at Mar 29, 2007, 11:17 PM
                  Actually David, I specifically don’t do a star reset everything on purpose. smiley
                  http://modxcms.com/forums/index.php/topic,9843.msg67728.html#msg67728

                  Woot, lesson re-learned : always challenge your own assumptions, star reset worked for me thus I never reconsidered (I can be lazy at times) and dug into resetting styles : another item to add to the CSS toolbox, thanks !

                  So many things to learn, and only 24h a day !!!
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l'outil id