Skip to content

ryankinal/haGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

haGrid

Grid-based design has gained a lot of popularity. So has "responsive" or "liquid" design. At first glance, these concepts seem incompatible. However, good grid-based design is based on ratios, so there is no reason we shouldn't be able to use percentage-based layouts and still achieve grid-like aesthetics.

Percentages are notoriously difficult to work with when attempting to implement margins, borders, and padding. These difficulties are easily reconciled using the concept of separation of container and content, as described by Nicole Sullivan (and demonstrated in her OOCSS framework).

haGrid, unlike OOCSS, does not attempt to normalize or reset defaults. It does not attempt to solve the content problem. It only attempts to solve the container problem, and it attempts to do so in a readable manner.

Grid Sizes

haGrid defines a few different ratios, and encourages combining those to form grids with more granularity:

  • tenths
  • fifths
  • thirds
  • quarters
  • "divine" ratio

Designing in CSS

Grid-based design with haGrid requires a lot of planning. In fact, it's most likely best to design outside of CSS, and use haGrid to implement, rather than create your design.

About

A flexible, readable grid system focusing on separation of container and content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published