Grow your CSS skills. Land your dream job.

Default styles?

  • # December 13, 2012 at 6:18 pm

    I am the only author of twenty-three intranet web applications. I am redoing our template and am wondering if I should reset and define default styles for all the tags, or only what I need. There is just some stuff I don’t use and I want to keep the CSS as clean and small as possible (mostly for mobile users).

    I really am the only person writing these. Bad idea to keep the size down? It would mostly be things like MARK, RUBY, RT, SAMP, etc.

    Blame my thinking on this guy: http://csswizardry.com/2011/01/the-real-html5-boilerplate/

    # December 13, 2012 at 6:25 pm

    Nope, not a bad idea at all. You should almost always trim the fat. The only suggestion that I would make is that if you are using a well know normalize/reset, perhaps add a comment at the top stating that you have modified it, removing unused declarations.

    # December 14, 2012 at 3:23 am

    Do the h1, h2, h3… because IE makes them bigger than every other browser

    # December 14, 2012 at 3:32 am

    I forgot that if you use HTML5 that you should reset stuff to block level elements because elements that the browser does not understand will default to inline elements.

    # December 14, 2012 at 6:14 am

    Certainly, for CSS, I would start all over again working from normalize.css (which you can trim down further if required).

    If, as you say there is a lot of stuff you aren’t using in your existing set up it only make sense to rip everything out and start from a fresh slate.

    Re-using old (and possibly obsolete code) is a real possibility when stripping out an old file.

    # December 14, 2012 at 8:18 am

    >I forgot that if you use HTML5 that you should reset stuff to block level elements because elements that the browser does not understand will default to inline elements.

    **[Normalize.css](http://necolas.github.com/normalize.css/2.0.1/normalize.css “Normalize.css”)** will do that for you.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".