Giter VIP home page Giter VIP logo

html6-bootstrap-grid's Introduction

HTML6 Bootstrap Grid

HTML6 grid based on Bootstrap CSS Framework.

Advantages

  • Semantic
  • More clean
  • Less code
  • DRY styled code (Don't Repeat Yourself)
  • Build with SASS

How To:

You can use basically the same classes of Bootstrap without "col-" class prefixes. You can apply cols attribute for any tags. There is no "xm-" classes, just put the numbers of columns and enjoy!

<!-- Semantic and small classes -->
<row>
  <div cols="12">old .col-xs-12 class</div>
  <div cols="6">old .col-xs-6 class</div>
</row>

<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
<row>
  <div cols="6 md-4">lorem ipsum</div>
  <div cols="6 md-4">lorem ipsum</div>
  <div cols="6 md-4">lorem ipsum</div>
</row>

<!-- Columns are always 50% wide, on mobile and desktop -->
<row>
  <div cols="6">lorem ipsum</div>
  <div cols="6">lorem ipsum</div>
</row>

The old way >={

<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
  <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
  <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>

<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
<div class="row">
  <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
  <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
  <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>

<!-- Columns are always 50% wide, on mobile and desktop -->
<div class="row">
  <div class="col-xs-6">.col-xs-6</div>
  <div class="col-xs-6">.col-xs-6</div>
</div>

Code released under Creative Commons Share-alike. It's free to copy, merge, publish and distribute without any limitations! =D

"Simplicity is the ultimate sophistication" - Leonardo da Vinci

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.