Giter VIP home page Giter VIP logo

matrix-css-framework's Introduction

Matrix CSS Framework

  • Extremely flexible
  • Insanely simple
  • Responsive by default

Matrix is a free, flexible and easy to use CSS framework for making responsive web pages.

The Matrix CSS Framework makes it easy to create flexible and responsive layouts for web pages the right way. It uses inline-blocks instead of floating divs and they are all centered by default so you can center elements in you page with ease. Even if you need to put elements on the right or left side of your page you can still avoid using floating divs and clear fixes.

You can check the sample html document included to see how it works. Or you can just keep reading ;)

How to install:

Step 1: Download the files to your computer.

Step 2: Include the matrix-grid.css file in your page. ie:

   <link rel="stylesheet" type="text/css" media="screen" href="css/matrix-grid.css" />

Step 3: Link to the latest jQuery. ie:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

Step 4: And last: Matrix uses inline-blocks for the layout. So we need to remove the unwanted whitespace between them. Because there is no bulletproof method of removing whitespaces by using only css we need to add this script. You can write it in you head tag after the jQuery or in the end of your page. :

<script type="text/javascript">
      $(document).ready(function() {
          $('.matrix').contents().filter(function() {
            return this.nodeType == 3 && !/\S/.test(this.nodeValue);
          }).remove();
      });
</script>

And you're done!

Tip: It is a good practice to add a viewport meta tag with initial-scale=1.0 for good measure. Just put in the head tag of you document.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

License:

Matrix is free and open source. It is licensed under the MIT license.

matrix-css-framework's People

Contributors

agtgreg avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

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.