SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru Zygoma's Avatar
    Join Date
    May 2006
    Location
    York, Uk
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Eric Myers CSS style reset Que

    Buongiorno from 6 degrees C about to rain Wetherby UK,

    Ive just began to play with CSS style resets and have loved the results of using this CSS reset http://meyerweb.com/eric/tools/css/reset/. But my question is please...
    "Is this still ok to use or are there more improved editions out there?"

    Thanks in advance,
    David
    I have had a perfectly wonderful
    evening, but this wasn't it-
    Julius "GROUCHO" Marx - 1890-1977
    http://www.davidclick.com

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,296
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    It's better than his old one, but a bit of overkill unless you use all those elements.

  3. #3
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,283
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    There's normalise.css (or maybe it's normalize with the z) which is also silly-verbose but much cleaner than Meyer's. First thing I checked in it was, did it still work with keyboard? Answer: yes. Outline and :focus were in.

    Honestly, I recommend you just write your CSS, and when you find there are a bunch of elements you are repeating yourself on, *then* lump those together near the top.

    Like if you saw you're always readjusting the vertical-align on images because you're leaving them inline a lot (not floating them or display:blocking them) and you always get that annoying gap at the bottom, and never want a border either. Then go ahead and have near the top of your page something like
    img {
    border: 0;
    vertical-align: bottom; /*or whatever isn't baseline*/
    }

    etc


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •