Web Design » Figma » How do I add a grid to bootstrap in Figma?

How do I add a grid to bootstrap in Figma?

Last updated on September 24, 2022 @ 6:43 pm

Bootstrap is a popular front-end framework that allows you to quickly create a website or web application. One of the benefits of using Bootstrap is its grid system.

To add a grid to your Bootstrap project, first add the following line to your project’s root file:

.

Next, add the following line to your project’s style.css file:.container {

padding: 20px;

margin: 0 auto;

}.row {

margin: 0;.col-md-4 {

width: 250px;.col-md-8 {

width: 500px;.col-md-12 {

width: 750px;.col-sm-4 {

width: 200px;.col-sm-8 {

width: 400px;.col-sm-12 {

width: 600px;.col-xs-4 {

width: 150px;.col-xs-8 {

width: 300px;.col-xs-12 {.row-fluid {

width: 100%;

padding-left: 0;

padding-right: 0;

vertical-align: middle;

vertical-align: top;

vertical-align: bottom;

display: table;.table {

border-collapse: collapse;.table th {

padding: 10px;

font-weight: bold;

text-align: center;.table td {

padding: 5px;

border: 1px solid #ccc;

border-width: 1px;.table thead {

display: table-header-group;.table thead th {

padding: 0;.table tbody {

display: table-body-group;.table tbody th {.table thead tr {

display: table-row-group;.table thead tr th {.table tbody tr {

display: table-row;.

PRO TIP: When adding a grid to bootstrap in Figma, be sure to use the correct settings for your project. Otherwise, your project may not display correctly on all devices.
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.