CSS Grid Frame Work

8 Dec 2020

Yes i dont have an cool names for it, I just wanted something fairly light that can replace the bootstrap and foundation grid and basic components that i use so often, some of these frameworks have so much bloat that i dont use so i thought i would try and create something my self. 

Mission is to keep it small and bloat free while still including some nice styles and colour schemes. Will see how i go with that. ;)

Basic Reset

The basic reset just sets all margin and padding to 0 and then some default fonts, i like the ones included with bootstrap, and due to size will try and not use google fonts and see how it looks. 

Margin and Padding

Some classes to add easy margins and paddings to things. 


  • m# : margin pixels number, set all margins of an element
  • mt# : margin top pixels
  • mb# : margin bottom pixels
  • ml# : margin left pixels
  • mr# : margin right pixels


  • p# : padding pixels number, set all padding of an element
  • pt# : padding top pixels
  • pb# : padding bottom pixels
  • pl# : padding left pixels
  • pr# : padding right pixels

m0 all the way to m50 in increments of 5px, so you can add things like

<div class='p20 mt10 mb10'>Padding 20px and margin top and bottom 10px</div>

Grid and Wrap

This will cover the col row and grid-x elements of foundation and bootstrap. 


/* Basic Reset */
:root {
    --font-family-sans-serif: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-family: var(--font-family-sans-serif), sans-serif;
  box-sizing: border-box;
  transition: all 0.2s;
  scroll-behavior: smooth;
  font-family: var(--font-family-monospace), monospace;
html {
ul {
  margin-left: 20px;
/* Basic Reset */

/* Margin Padding - 0px to 50px */
/* Margin Padding */

Other Items in framework
Page Views

This page has been viewed 100 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
In this case my anchor this week becomes driving almost 2hrs outside of Atlanta to one of my favorite hard core gyms in the world.. MetroFlex aka The Dungeon. The gym owners turn the heat way up so it becomes a fun sweat box and the gym members just watch from afar and leave me alone. I happily drive myself long distances to find MY ANCHOR. Our anchor allows us to have balance, focus and be as productive as possible. And if you're in the middle of a heavy set and your headphones start to fall off your head, like mine did here.. well.. f*ck the headphones. Let em break and fall. You can always get a new pair, but the iron ain't ever gonna lift itself.