A “What if Wednesday” Post
For today’s “What if Wednesday” post, I thought I would look at some of the underpinnings of websites and the background that goes into producing websites according to the styles of those who came before us. One of these underpinnings is the 12-column grid, which we will discuss today.
Introduction to the 12-Column Grid System
Have you ever felt the frustration of visiting a website that crumbles like a sandcastle on your phone? Or the disappointment of a layout that feels as rigid as a corset, unable to adapt to the graceful flow of different screen sizes?
While not as common as they used to be, you may still encounter these issues on your website or perhaps you have an older website with the problem and are trying to redesign it to be responsive. Or maybe you are not a web designer or website owner, but just a frustrated user. However, what if there was a way to create a website that looks good on every device. The 12-column grid is generally the foundation of responsive design (Snell 2013).
What is a 12-Column Grid?
The 12-column grid is a structural framework that divides your webpage into 12 equally-sized vertical columns. Similar to a blueprint, it is a series of invisible lines that guide the placement of your content, ensuring balance, clarity, and adaptability. Think of it as having a team of virtual architects that are working behind the scenes, making sure that your website looks good on all devices.
The concept of grids is not a new thing that has come about with web design. Grids date back to the early days of print and ancient architecture. The 12-column grid system was introduced to web design when the need arose to have a website adapt to the needs of varying device sizes. Thusly, we have a link between architecture and web design and the impetus for the “What if Wednesday” series dealing generally with architecture, but also other disciplines that use grids here and there.
Why are there 12-Columns?
A 12-column grid system is used since it provides the most flexibility. It is divisible and allows for you to create a variety of layouts without difficulty. For instance, you can divide it by 2,3,4, or 6 and even more with a 960 grid system. Being divisible by a large variety of numbers gives your website the ability to be viewable on many devices without falling apart, as described above.
Because of its amazing flexibility, the 12-column grid has become an industry standard, US government standard (Montgomery 2015) and is used on websites around the world. If you are ready to produce a website that is responsive and accessible (Srinvasan, et al 2023) on any number of devices, read on to find out how.
Columns and Gutters: The Vertical Backbone of the Grid
Columns and gutters are the fundamental building blocks of the 12-column grid and provide the structure and flexibility needed to create responsive, visually appealing layouts. When you understand the interplay between there two crucial elements, you can craft responsive websites and achieve the same architectural, artistic. and musical effects that we have talked about in the “What if Wednesday” series.
Try to imagine a 12-column grid as a majestic cityscape, where each column is a skyscraper. These columns represent the vertical divisions that slice your webpage into 12 equal parts, providing the structural foundation for the content on your website. The columns act as containers, guiding the placement of text, images, videos, and other elements, and ensures that they align in harmony within the overall layout.
In the above, we talked about the 12-columns, but what about the space between the columns, where the streets would be? This is where your gutters would lie. Gutters are the gaps between the columns, giving breathing room between the content and prevent a feeling of being cluttered or cramped. Gutters create visual separation and allow each element to stand out and shine while maintaining a sense of order and clarity.
The trick in having a responsive website is getting a balance between the columns and the gutters or structure and opennsess. Gutters that are too narrow can leave a cramped claustrophobic feel, while overly wide gutters can create sense of being unconnected. The ideal gutter width depends on the specific design and content, and balance is needed to have both visual appeal and readability.
Enter the 12-Column Grid
Using a 12-column grid system we can achieve the optimum balance for visual appeal and readability, as described above. For instance, multiple columns can be divided to form wider sections such as hero images or headlines. Narrower columns can be used for sidebars or navigation menus. With endless possibilities, you can tailor the grid to your requirements. Some versions of the 12-column grid, such as the 960 grid system (Rawlinson 2012), divides the grid into very small units.
An Example of Using a 12-Column Grid System
Imagine a webpage layout with three equal columns. In this scenario, each column would occupy four grid units (12 columns/3 = 4). The gutters between those columns would provide the spacing to ensure visual clarity and prevent the content from merging into a jumbled mass. For inspiration on using vertical lines, look at the post on Mies van der Rohe. Mies van der Rohe used vertical lines to bring the inside out.
Rows and Modules: The Horizontal Content Containers
Rows and modules are the horizontal counterpart to columns and gutters in the 12-column grid system and help to breathe life into the website. Rows are the floors of the cityscape and are expressed as horizontal containers that span the entire width of the grid. They provide the framework for organizing your content into distinct sections and ensure a clear visual hierarchy to guide the user’s eye across the page. Each row can contain one or more modules, which are the individual content blocks in your layout.
Modules contain the text, images, video, and other elements in your website. They are nestled within the rows and adhere to the grid’s column structure to create cohesive and organized presentation. They can span across multiple columns depending on the layout.
An Example of Using Rows and Modules
Let’s look at the example above using columns and gutters with the three-column layout. Within each row, you might have three modules, each of which occupy one column. Alternatively, you could have a single module that spans all three columns, creating a full-width section for a hero image or a prominent headline.
Rows can be stacked vertically to create a linear flow or you can nest rows within modules to create more complex, multi-layered layouts. The possibilities are only limited by your imagination. For inspiration on using rows and modules, you can look at the architect, Frank Lloyd Wright who used horizontal lines to embrace and release those in his buildings.
Best Practices with Rows and Modules
To ensure a harmonious and visually pleasing design, it is imperative to pay attention to the alignment and spacing of rows and modules. Consistent gutter widths between modules within a row can create a sense of order and clarity. Similarly, consistent vertical spacing between rows ensures a comfortable reading experience and prevents the content from feeling cramped.
Breakpoints and Responsive Design
Once we have the elements above, we then need to consider breakpoints, or the screen sizes which will trigger a change in the structure of the website. Breakpoints are predefined screen widths that trigger layout adjustments and ensure that your website looks its best on any device and are the magic of the 12-column grid layout. Essentially they are checkpoints or signals that tell your CSS code when to rearrange the grid, resize elements, or to hide certain content that will not fit to a smaller size.
At each breakpoint, the grid reconfigures itself, adjusting the number of columns, column widths, gutter sizes, and sometimes even the arrangement of rows and modules. The resulting transformation ensures that your content remains accesible, readable, and visually appealing. These breakpoints empower you to create a website that transcends the limitations of fixed layouts.
What are Some of the Common Breakpoints?
Some of the common breakpoints include:
- Large Screens (desktops and larger laptops): 1,200+ pixels wide
- Medium Screens (tablets and smaller laptops): between 768px and 1,199px wide
- Small Screens (smartphones): < 767px wide
These ranges can vary according to your users, the specific design, or the content needs. The main goal is to identify where your layout starts to feel cramped, cluttered, or difficult to navigate.
An Example Using Breakpoints
Using the 3-column layout above, following are some examples using breakpoints for various screen sizes. On a large screen, each column might occupy four grid units. However, as the screen size shrinks, those columns might become too narrow to comfortably display content. At a defined breakpoint, the layout could shift to two columns, each occupying six grid units, allowing for more content breathing room. On the smallest screens, the layout could shrink to a single-column design, ensuring a seamless reading experience on smartphones.
CSS Frameworks: Your Predefined 12-Column Grid
Now that you know you need a 12-column grid system, where do you go to get one. You can build one yourself or you can use one that is already built with a CSS framework. These frameworks help to streamline the process of building your website based on the 12-column grid.
Some of the more popular CSS frameworks include Bootstrap (Beattie 2013 and Rawlinson 2014) and Foundation, which include libraries of pre-styled components with built in grid systems. These frameworks offer a plug-and-play solution, allowing you to quickly scaffold your website’s structure and layout without writing extensive custom CSS. Going beyond the prebuilt 12-column grid, these frameworks have pre-styled elements such as buttons, navigation bars, forms, and more. All of these resources can signifcantly speed up production time.
Pros and Cons of Using CSS Frameworks
As with most things, there are pros and cons to using CSS frameworks. On one hand they offer a quick and easy way to get started with a 12-column grid. However, on the other hand they can be or feel restrictive, limit your creative freedom, and make it hard to produce a truly unique design for your website. In addition having more code can bloat your website. Below is a summary of some more pros and cons of using CSS frameworks.
Pros of CSS Frameworks
- Allows for Rapid Development: Having a pre-built grid system and components accelerates development time.
- Consistency: A framework promotes a unified look and feel across your website.
- Community Support: Large communities offer resources and assistance.
Cons of CSS Frameworks
- There is Limited Flexibility: It can be challenging to produce a unique design that stands out.
- Website Bloating: The extra code can increase file sizes and potentially impact the performance of your website.
- There is Learning Curve: Using the framework often requires familiarity with framework’s syntax and conventions.
Using Custom CSS for Your Framework
What if you want to develop your own 12-column grid? For this would use custom CSS, which can give you freedom and control over your website. Generally this path is for those who want to push the boundaries of web design and create experiences that stand out from the crowd.
Building a 12-column grid with custom CSS involves using tools such as CSS Grid Layout or Flexbox and provide the flexibility and precision needed to craft a grid according to your design goals.
How Do You Use Custom CSS to Produce a Grid?
There are several steps to procuce a custom grid, which are outlined below:
- Define the Grid Container: First you need to create a container element, such as a <div>, that will house your grid. This container acts as the canvas where you will have your grid. If the elements contained in the grid are related then try to use a more specific container type such as <article>, <blog>, etc.
- Set the Display Property: The second step is to set the display property of the container to either grid or flex, depending on the layout technique. This declaration then allows you to apply grid-specific or flex-specific properties.
- Define Columns and Gutters: The third step is to define your columns and gutters.
- Using CSS Grid
- For the columns you need to use the grid-template-columns property to specify the number of columns and their widths. For example, grid-template-columns: repeat (12, 1fr) would create 12 equally sized columns.
- For the gutters, use the grid-column-gap property to set the gutter width.
- Using Flexbox:
- Apply the flex property to the child elements within the container. The flex-basis property can be used to control the width of each column, while the margin property can be used to create gutters.
- Using CSS Grid
- Place Content: Once you have the grid structure defined you can place the elements in the container using grid-column and grid-row in CSS Grid.
- Add Breakpoints: Be sure to incorporate breakpoints in your CSS. At each breakpoint, you can redefine the column widths, gutter sizes, or even the overall grid structure to optimize the layout for the specific screen size.
The Benefits of Using Custom CSS for a 12-column Grid
- Flexibility: With custom CSS you have complete flexibility over aspects of the grid, enabling you to create truly unique and tailored designs.
- Performance Optimization: Custom CSS eliminates unnecessary bloat and allows to fine-tune your CSS for optimal performance.
- Skill Development: Allows you to enhance your CSS skills and deepen your understanding of modern layout techniques.
Design Tools and Software for Creating a 12-Column Grid
To assist in creating your 12-column grid there are a number of tools available. These include Sketch, Figma, and Adobe XD, which have built-in grid functionality that help to streamline the design process. They allow you to visualize the grid structure, drag and drop elements into place, and you can see how your layout adapts to different screen sizes. In a sense, these tools act as a digital drafting table that has rulers, guides, and snapping features to ensure your design adheres to the 12-column grid.
Some of the advantages of these design software tools include:
- Intuitive Interface: The drag-and-drop functionality and visual feedback simplifies the design process and makes it accessible to designers of all skill levels.
- Real-time Previews: You can instantly see how your layout responds to different screen sizes, which ensures a responsive design from the outset.
- Collaboration: Cloud-based tools like Figma enable seamless collaboration between designers, developers, and stakeholders, allowing for a more efficient workflow.
Below are some ways to leverage design software for implementation of your 12-column grid.
- Define your Grid Early: Establish your 12-column grid structure at the beginning of your design process, to ensure that all elements align with the grid from the start.
- Utilize the Snapping Features: Use the snapping features so all of the elements align perfectly with the grid columns and gutters.
- Create Reusable Components: Try to design modular elements that can be easily reused across your layout.
- Test Your Design on Different Devices: Preview your design on various screen sizes to ensure responsiveness and to find potential issues.
Having Visual Heirarchy and Maintaining Balance
Try to imagine your website as a stage, where each element vies for the spotlight. Visual hierarchy directs the performance by guiding the user’s eye and the 12-column grid acts as the stage manager to provide the structure and framework to have a harmonious and impactful presentation. The grid is not just a structural tool, it is canvas for artistic expression, giving you the ability to craft layouts that are both functional and aesthetically pleasing.
Visual Hierarchy
Visual hierarchy is about establishing a clear order of importance and allows the most crucial elements to command attention while secondary elements play supporting roles. The grid works in strategically placing content within columns and rows, utilizing size, contrast, and placement to create a hierarchy. Some of the ways this is accomplished include:
- Differences in Size: Larger elements attract more attention than smaller ones. A grid structure can allocate more columns or rows to prominent elements like headlines, hero images, or call-to-action buttons, ensuring they dominate the visual landscape.
- Contrast Creates Emphasis: Contrasting colors, fonts, or visual styles can draw the eye to specific elements.
- Placement Guides the Eye: The position of elements within the grid influences their perceived importance. Key elements should be placed in prominent positions, such as the top left corner or center of the page, where they are more likely to be noticed.
Website Balance
Balance on your website is crucial in order to have a harmonious and aesthetically pleasing layout. Some ways to achieve balance include:
- Symmetry vs. Asymmetry: Symmetrical layouts create a sense of formality and order, while asymmetrical layouts can be more dynamic and visually interesting. You can use the 12-column grid to experiment with different arrangements.
- Weight and Visual Density: Consider the visual weight of different elements, such as images, text blocks, and whitespace.
- Whitespace as a Design Element: Whitespace, or negative space, is not just empty space, but is a powerful design tool to enhance visual hierarchy and balance. Using this space effectively can allow elements to breathe and emphasize their importance.
Content Placement and Alignment Using a 12-Column Grid
Imagine your webpage as a winding path through a lush garden. Content placement and alignment are the signposts and landmarks that guide visitors along the journey and the 12-column grid is the gardener that provides the structure and pathways to create a clear and intuitive navigation experience.
Content Placement
Strategic content placement involves thoughfully positioning the elements within the grid to prioritze key information and create a logical flow. Some of the various placements you can use include:
- The F-Pattern: Studies have shown that users tend to scan webpages in an F-shaped pattern, starting at the top left corner and moving horizontally across the top, then scanning vertically down the left side, and finally scanning horizontally across the middle of the page.
- The Gutenberg Diagram: This diagram pattern divides the webpage into four quadrants that include the primary optical area (top left), the strong fallow area (top right), the weak fallow area (bottom left), and the terminal area (bottom right). Your most important content should be placed in the primary optical area, followed by secondary content in the strong fallow area and so on.
- Call-to-Action Placement: Call-to-action buttons and links should be placed in prominent areas of the grid, such as the top right corner or near the end of content sections, in order to encourage user engagement.
Content Alignment
Alignment involves creating visual order and consistency within your layout. The grid provides a natural framework for alignment, allowing you to arrange elements along vertical and horizontal axes, which creates a sense of cohesion and clarity. Below are some things to keep in mind in regards to content alignement:
- Grid Alignment Options: CSS Grid and Flexbox offer various alignment options, such as <align-items> and <justify-content>, allowing you to control how elements are positioned within their grid cells or flex containers.
- Text Alignment: The alignment of text can affect the readability of content. For instance, left-aligned text is generally easier to read, while centered text can be used for headlines or short-snippets. Right-aligned text should be avoided for large blocks of content, as it can disrupt the reading flow.
- Visual Consistency: The alignment of content should be consistent throughout your layout. Generally, you should strive to align elements along the same grid lines or use consistent spacing between elements to create a sense of visual rhythm and harmony.
Whitespace and Negative Space
Whitespace, which is also known as negative space, helps content to breathe on your webpage. Whitespace plays a crucial role in enhancing the overall user experience, promoting clarity, focus, and visual appeal. Whitespace can be thought of as pauses in a musical composition.
Within the 12-column grid, whitespace can be strategically employed to enhance visual hierarchy, balance, and overall user experience. Below is an elaboration of some of these points:
- Enhancing Visual Hierarchy: Having ample amounts of whitespace helps to visually spotlight content and draws the user’s eye to the most important areas. This technique helps to prioritize information and guide the user through the page.
- Creating Balance: Whitespace can be used to counterbalance the visual weight of denser elements, such as images or large blocks of text. The whitespace creates a sense of equillibrium and visual harmony.
- Improving Readability: Having generous margins and padding around text blocks helps to enhance readability. Whitespace also helps to separate different sections of text, preventing them from blending together causing confusion.
- Whitespace Promotes Focus: Individual elements can be focused on without dsitractions when elements have ample whitespace. This is especially important for call-to-action buttons and other interactive elements.
- It Enhances the Aesthetics: The incorporation of whitespace can contribute to a clean, modern, and sophisticated aesthetic. It conveys a sense of elegance and refinement, making your website more visually appealing and memorable.
Examples of Websites that Use the 12-Column Grid System
Below are some real-world examples of websites that use the 12-column grid system, grouped by category. These sites can serve as inspiration for your website.
- E-commerce: Amazon and Shopify use the grid’s flexibility to present an array of products in an organized and visually appealing manner. The grid in these cases allows for clear categorization of products, product highlighting, and seamless navigation, guiding users through the shopping journey.
- News and Media: Publications such as the The New York Times and BBC rely on the grid to deliver a wealth of information in a structured and digestable format. By using the grid they can organize headlines, articles, images, and videos in structured way to create a visually engaging experience.
- Portfolio and Creative Agencies: Behance and Dribbble use the grid to showcase creative work in a visually striking and impactful way. By using the grid they can create dynamic galleries, portfolio layouts, and interactive elements.
- Corporate and Business: Apple and Microsoft use the 12-column grid to project a sense of professionalism, order, and sophistication. As such the grid facilitates the creation of clean, minimalist layouts, highlighting key messages and calls-to-action with clarity and precision.
Conclusion
Remember, the grid is not a rigid constraint, but a flexible tool that empowers you to create a digital experience that resonates with your audience and leaves a lasting impact. To summarize the points covered in this post, the 12-column grid is more than a design trend, it is a timeless principle that allows you to:
- Create Responsive Layouts: It allows your website to seamlessly adapt to any screen size, ensuring a consistent and enjoyable experience across devices.
- Establish Visual Hierarchy: The 12-column grid helps to guide the user’s eye through your content with clarity and purpose, highlighting key information, and calls-to-action.
- Achieve Balance and Harmony: The grid helps you craft layouts that are aesthestically pleasing and visually balanced, creating a sense of order and sophistication.
- Optimize Content Placement and Alignment: Elements can be arranged strategically to promote readability, engagement, and a seamless navigation experience.
- Leverage Whitespace Effectively: Enhance visual hierarchy, balance, and readability by incorporating thoughtful amounts of negative space.
As you go through your web design journey the 12-column grid can be your guide to build websites that not only look stunning, but also function flawlessly, captivate users, and help set your work apart from the competition.
References
- Beattie, Rob. 2013. Create a website with Bootstrap. PC Pro Sep2013, Issue 227.
- Montgomery, Angus. 2015. US government launches design standards to improve its web presence. Design Week 10/19/2015.
- Rawlinson, Nik. 2014. Going ‘mobile first’ with Twitter Bootstrap. Computer Shopper Feb2014, Issue 312.
- Rawlinson, Nik. 2012. Designing layouts on grids. Computer Shopper Dec. 2012, Issue 298.
- Snell, Jeremy. 2013. Flexible Everything: Getting Responsive with Web Design. Computers in Libraries 33 (3): 12-16.
- Srinivasan, Arjun, Tim Harshbarger, Darrell Hilliker, and Jennifer Mankoff. 2023. Azimuth: Designing Accessible Dashboards for Screen Reader Users. ACM SIGACCESS Conference on Computers & Accessibility, 2023.