পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Saturday, February 18, 2017

Foundation - The Grid

Description

Foundation grid system scales up to 12 columns through the page. Grid systems are used to create page layouts through a series of rows and columns that house your content.

Grid Options

The below table tells briefly about how the Foundation grid system works in multiple devices.

Small devices Phones(<640px) Medium devices Tablets(>=640px) Large devices Laptops & Desktops(>=1200px)
Grid behavior Horizontal at all times Collapsed to start, horizontal above breakpoints Collapsed to start, horizontal above breakpoints
Class prefix .small-* .medium-* .large-*
Number of columns 12 12 12
Nestable Yes Yes Yes
Offsets Yes Yes Yes
Column ordering Yes Yes Yes

Basic Structure of a Foundation Grid

Following is basic structure of Foundation grid:
<div class="row">
  <div class="small-*"></div>
  <div class="medium-*"></div>
  <div class="large-*"></div>
</div>
<div class="row">
  ...
</div>
  • First, create a row class to create horizontal groups of columns.
  • Content should be placed within the columns, and only columns may be the immediate children of rows.
  • Grid columns are created by specifying the number of twelve available columns you wish to span. For example, for four equal columns we would use .large-3
Following are the three classes used in the Foundation grid system:
S.N. Basic Grid classes & Description
1 Large
The large-* class is used for the large devices.
2 Medium
The medium-* class is used for the medium devices.
3 Small
small-* class is used for the small devices.

Advanced

Following are the advanced grid format used in Foundation.
S.N. Advanced Grids & Description
1 Combined Column/Row
The column and row class are used on the same element to get the full width column to use as container.
2 Nesting
We can nest the grid columns inside another columns.
3 Offsets
Using large-offset-* or small-offset-* class, you can move the columns to the right.
4 Incomplete Rows
Foundation floats the last element automatically to the right when the rows do not include columns up to 12.
5 Collapse/Uncollapse Rows
Using the media query size include the collapse and uncollapse class to the row element to show the paddings.
6 Centered Columns
Including the class small-centered to column, you can make the column at the center.
7 Source Ordering
Source ordering class is used to shift the columns between the breakpoint.
8 Block Grids
Block-grid is used to split the content.

Building Semantically

Using the set of SASS mixins, a grid CSS is generated which is used to build your own semantic grid. For more information click here

SASS Reference

Following are the SASS reference for grid used in Foundation.
S.N. Basic Grids & Description
1 Variables
Using the sass variables we can modify the default styles of this component.
2 Mixins
The final CSS output is build using the mixin.

No comments:

Post a Comment