CSS Resets

Started on 08/15/10
  • DrewGliever on Aug 15, 2010
    Haven't posted here in a while, and it seems like this isn't something that has been touched on much yet.

    I was just wondering what people's practice was when it comes to resetting CSS. Is it best to have an entire stylesheet set aside (reset.css), put a small universal reset in at the beginning of style.css, or just ignore it and hope you've set enough styles to override browser defaults? I've heard that this:

    * {
    vertical-align: baseline;
    font-weight: inherit;
    font-family: inherit;
    font-style: inherit;
    font-size: 100%;
    border: 0 none;
    outline: 0;
    padding: 0;
    margin: 0;
    }

    is the best reset around, but I've been noticing more and more people using separate stylesheets just for the reset. Thoughts?!!?
  • Joey on Aug 15, 2010
     
    i use this one http://meyerweb.com/eric/tools/css/reset/

    i keep it in a separate stylesheet just for cleanliness sake. there really isn't any benefit either way. just a preference thing.
  • DrewGliever on Aug 15, 2010
     
    I'm not gonna lie, right after I posted this I started poking around on here and found that out.

    That's kind of what I figured, but I thought I'd post on here and get some preferences. Thanks for the link, Gooey!
  • Jason Taylor on Aug 15, 2010
     
    When I was a kid in Miami I used to love going over to my Cuban friends house and listen to them all speak cuban spanish to eachother. I'd try and figure out what they were saying...

    This read was oddly similar.
  • DrewGliever on Aug 15, 2010
     
    Trust me, I still feel like that with a lot of things.. CSS is one thing I actually understand.
  • RustyEight on Aug 16, 2010
     
    I'd also specify a line-height in there. Default is 1, but some objects inherit a line height when you don't want to... like images.
  • You need to login to leave a reply.
Advertisement