Skip to content

ma7payne/Overload-Grid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overload Grid

Welcome to Overload Grid. This is a simple, easy and powerfull CSS Grid. It's free, you can use this Grid for your proyects.

Installation

Getting Started

First you need to link the stylesheet

<link rel="stylesheet" type="text/css" href="css/overload-grid.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">

Structuring your layouts. Example:

<div class="container">
    <div class="o-grid">overloadsgn
        <div class="boxM-50 boxS-100">
            <div class="box">50</div>
        </div>
        <div class="boxM-50 boxS-100">
            <div class="box">50</div>
        </div>
    </div>
</div>

You will be able to create their structures quickly and easily. The beauty of this network is that it is 100% customizable and intuitiba. Check vistaso the code, you see that each box has a size and is named according to their size. For example, a box that occupies 100% of the container for a medium-resolution devices (laptop) is called boxM-100 and also with the other sizes.

!Important detail

You can noted that the separation of the blocks is through "padding", this is for our widths are not broken. But if we want to create a row of blocks in another row, we would have problems with these spaces and not remain good. Therefore we created a series of general classes that are used to make a small hack and so our grid just right :)

check out the code. We will reset the padding and create that separation with a margin (Preset mb10) class.

<div class="o-grid">
    <div class="boxM-25 boxS-100">
        <div class="o-grid">
            <div class="boxM-100 boxS-100 pReset mb10">
                <div class="bit-box">25</div>
            </div>
        </div>
        <div class="o-grid">
            <div class="boxM-100 boxS-100 pReset">
                <div class="bit-box">25</div>
            </div>
        </div>
    </div>
</div>

Creating your settings width for the blocks is really simple, all you need to keep in mind is that your blocks always add to 100%:

.boxM-75 {width:75%;}
.boxM-25 {width:25%;}

Support

If you have any questions or you can help us improve this grid please contact me, we will gladly answer.:

Thank you!

Remember if you have any question or just you want to help me to do a better grid please write me :).

This grid is inspired by lemonade grid by @joericho, thank for their contribution and support for the creation of this grid.

License

Copyright (C) 2014 Overload Team

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Simple, easy and powerfull CS Grid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published