Grow your CSS skills. Land your dream job.

Which is the “best” boilerplate?

  • # April 8, 2013 at 5:46 am

    Class names don’t have to be semantic although you make a reasonable point.

    I do have one question…if you have a class of .group that has its width set in a media query, do you have another class of .group-2 for another group with a different width?

    Perhaps I’m not getting it.

    # April 8, 2013 at 6:07 am

    > @dfogge – Definitely on the money – instead of a lengthy and complex grid for our new site, I simply created an uber simple framework;

    Lovely code Andy, really. But as long as it involves figures like `22.105%`, `48.05%` and `30.73%` I’m not sure we can still talk about an “uber simple” thing.

    # April 8, 2013 at 4:29 pm

    @Paulie_D: Here’s a very quick and messy example of what I was talking about. Of course, it’s better when you have a real layout to plan so it’s not as messy as this. Most of the time you can create grids with the existing div or p tags, but sometimes you may want to create a class (such as .group), so you can get more complex. My designs aren’t usually overly complex, so I normally just use divs to create basic grids.

    [CodePen Example](http://codepen.io/msguerra74/pen/CKJyI “”)

Viewing 3 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic.

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