Skip Ribbon Commands
Skip to main content

​​​​​​​​Introduction - grid system

uihiro​ includes predefined grid classes for quickly making grid layouts for different types of devices like cell phones, tablets, desktops, etc. For example, you can use the .col-xs- class to create grid columns for extra small devices like cell phone similarly the .col-sm- for small screen devices like tablets, the .col-md- class for medium size devices like desktop and the .col-lg- for large desktop screens. 

Basic Grid System

If you see the output of the above code in laptop or desktop having screen width greater than or equal to 992px and less than 1200px you will find it has 4 rows where each row has 3 equal columns resulting in 3x4 grid layout.


 

Box 1

Box 2

Box 3

Box 4

Box 5

Box 6

Box 7

Box 8

Box 9

Box 10

Box 11

Box 12


​Grid System with clearfix class="clearfix visible-md

​​But just wait, the above example has a major alignment issue. If height of any column is taller than the other it don't clear properly and break the layout. To fix this, we use the combination of a .clearfix class and the responsive utility classes.

​Box 1

Box 2​

Box 3

 

Box 4

Box 5

Box 6

 

Box 7

Box 8

Box 9

 

Box 10

Box 11

Box 12



​Grid System - Optimised for Phone, Tablets and Desk  class="col-sm-6 col-md-4 col-lg-3​

Applying any .col-sm- class to an element will not only affect its styling on small devices like tablets, but also on medium and large devices having screen size greater than or equal to 768px (i.e. ≥768px) if .col-md-and .col-lg- class is not present. Similarly the .col-md- class will not only affect the styling of elements on medium devices, but also on large devices if a .col-lg- class is not present.


 

Pimp your SharePoint with a front-end framework for developing responsive, on-prem, hybrid, pure Office 365 and mobile ready projects. Our theming engine provides a rich repeatable design experience producing custom master pages, global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.

Pimp your SharePoint with a front-end framework for developing responsive, on-prem, hybrid, pure Office 365

Our theming engine provides a rich repeatable design experience producing custom master pages, global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.

 

Pimp your SharePoint with a front-end framework for developing responsive, on-prem, hybrid, pure Office 365 and mobile ready projects.

 

Box 5

Box 6

 

Box 7

Box 8

 

Box 9

 

Box 10

Box 11

Box 12​​

​​


​Fluid Grid System - Optimised for Phone, Tablets and Desk  class="col-sm-6 col-md-4 col-lg-3​

Applying any .col-sm- class to an element will not only affect its styling on small devices like tablets, but also on medium and large devices having screen size greater than or equal to 768px (i.e. ≥768px) if .col-md-and .col-lg- class is not present. Similarly the .col-md- class will not only affect the styling of elements on medium devices, but also on large devices if a .col-lg- class is not present.


 

Pimp your SharePoint with a front-end framework for developing responsive, on-prem, hybrid, pure Office 365 and mobile ready projects. Our theming engine provides a rich repeatable design experience producing custom master pages, global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.

Pimp your SharePoint with a front-end framework for developing responsive, on-prem, hybrid, pure Office 365

Our theming engine provides a rich repeatable design experience producing custom master pages, global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.

 

Pimp your SharePoint with a front-end framework for developing responsive, on-prem, hybrid, pure Office 365 and mobile ready projects.

 

Box 5

Box 6

 

Box 7

Box 8

 

Box 9

 

Box 10

Box 11

Box 12​​

​​