Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


A minimal LESS template to start an HTML5 project without the overhead of Bootstrap (and similar frameworks). Several optional mixins can be left out entirely.

If you need a pure CSS solution that doesn't involve LESS, please see the 0.9.x versions of html5quickstart. No further support is offered for these versions.

The fluid grid was tested in Chrome, Safari, Firefox, IE9+, iOS, and Android's stock browser. It is intended to be used with a progressively-enhanced mobile-first methodology.

Internet Explorer note: Mobile-first design ensures that older versions of Internet Explorer will show the mobile styles, since they don't support media queries. If you need to style older versions of Internet Explorer more extensively, you can create selectors that start with .oldie, which targets IE8 and below.

##Overview Includes the following features:


  • Master CSS Reset
  • Semantic Fluid Grid Mixin with micro clearfix
  • Utility Mixin with accessible hiding & vendor prefixes
  • Placeholders for media queries & retina graphics
  • h5bp Print Media Overrides
  • Formats b, strong, pre, code, small, sub, sup
  • Various browser specific fixes


  • HTML5 doctype
  • Paul Irish oldie detection
  • CDN-loaded IE shivs for HTML5
  • Optional CDN-loaded jQuery
  • Placeholders for popular meta tags
  • Placeholders for Windows 8 and iOS device icons
  • Optimized Google Analytics placeholder


  • robots.txt placeholder

##Documentation Here's how to use the fluid grid and the various utility classes:

###Fluid Grid The fluid grid is based on a 12 column system with 2% gutters, these values can be modified in grid.less. It also defaults to applying border-box sizing on the columns, this can be changed as well.

To use the fluid grid to create columns, first add the .group() mixin to the containing element to clearfix it. Next simply add .column(widthInColumns) to your column elements, e.g. .column(6) to create a column that spans half the page.

You can also use the .push(widthInColumns) mixin to push a column to the right without creating empty padding columns.

If you want a single row to line up with the grid columns, simply apply .single-row() to it.

Here is an example of implementing a responsive, fluid grid:

<div class="row">
    <section>Hello, world.</section>
    <section>This is a column.</section>
    <section>And another one.</section>
    <section>But wait! There's more!</section>
.wrapper {
    section { padding: 1em; }

@media screen and (min-width: 48em) {
    .wrapper {
        .row { .group(); }
        .row section { .column(3); }

Easy, right?

###CSS Classes ####.wrapper Apply this to your page wrapping div to set the max-width of the layout and keep it centered.

###LESS Mixins The classic micro float clearing fix in the form of a mixin. Apply .group() to a floated element to make sure that elements below it clear the float properly.

####.hidden() This mixin hides an element from screen readers and browsers while reflowing content.

####.invisible() This mixin hides an element from screen readers and browsers while maintaining layout.

####.visuallyhidden() This mixin hides an element from browsers, but not screen readers.

####.border-radius (@radius:0) Border radius mixin. You can also specify four radii to make each corner a different radius. (@x:0, @y:0.1em, @feather:0.1em, @dist:0, @color:#000000) Box shadow mixin that defaults to a 0.1em 90 degree black drop shadow with a distance of 0.

####.gradient(@start-color:#ffffff, @end-color:#000000) Gradient mixin that supports Webkit/Gecko browsers and IE6+.

####.opacity(@opacity:100) Opacity mixin that supports IE6+. Box sizing mixin.

####.transition(@element:all,@time:1s,@style:ease) Transition mixin.


That's all for now! Thanks to Dan Cederholm and Ethan Marcotte for their pioneering responsive design advice.

Parts were adapted from Eric Meyer's CSS Reset,, and the HTML5 Boilerplate.

Feel free to modify and use in your projects as you wish, although a link to my site or the GitHub repo is always appreciated.


A basic LESS template to start an HTML5 project without the overhead of Bootstrap (and similar frameworks).



No packages published