Use of spaces in Quickly

Gutters, also known as spaces between columns, are key elements to distribute and align the content receptively within the grid system Quickly.

Total control of spaces between elements

You can separate objects according to the type of spacing you want. By default, Quickly offers a sequence of 8px spaces, starting with the G-1, equivalent to 8px, and reaching until the G-5, equivalent to 40px. In addition, special classes are included for the mobile version that will affect everything below 992px, deactivating normal classes. With this, you will have greater control in the spaces in mobile versions.

.gutter-n°

Normal class Mobile class Description
.g-0 .gm-0 .Gutter-0. Remove the horizontal and vertical separation between elements.
.g-1 .gm-1 .Gutter-1. Add a horizontal and vertical separation between 8px elements.
.g-2 .gm-2 .Gutter-2. Add a horizontal and vertical separation between 16px elements.
.g-3 .gm-3 .Gutter-3. Add a horizontal and vertical separation between 24px elements.
.g-4 .gm-4 .Gutter-4. Add a horizontal and vertical separation between 32px elements.
.g-5 .gm-5 .Gutter-5. Add a horizontal and vertical separation between 40px elements.

Gutters del 1 y 5

g-1
g-1
g-1
g-1
g-5
g-5
g-5
g-5
HTML
                                    
    <div class="g-1 grid item-2">
        <div class="p-2 text-ac">g-1</div>
        <div class="p-2 text-ac">g-1</div>
        <div class="p-2 text-ac">g-1</div>
        <div class="p-2 text-ac">g-1</div>
    </div>
    <div class="g-5 grid item-2">
        <div class="p-2 text-ac">g-5</div>
        <div class="p-2 text-ac">g-5</div>
        <div class="p-2 text-ac">g-5</div>
        <div class="p-2 text-ac">g-5</div>
    </div>
                                

Horizontal axis spaces

To achieve better control in the separation between elements on the X axis, horizontal spacing classes can be used. These classes allow to adjust the margins and the horizontal filling between the objects, providing a more consistent and precise disposition.

.gutterx-n°

Normal class Mobile class Description
.gx-1 .gxm-1 .Gutterx-1. Add a separation between 8PX horizontal elements.
.gx-2 .gxm-2 .Gutterx-2. Add a separation between 16px horizontal elements.
.gx-3 .gxm-3 .Gutterx-3. Add a separation between 24px horizontal elements.
.gx-4 .gxm-4 .Gutterx-4. Add a separation between 32px horizontal elements.
.gx-5 .gxm-5 .Gutterx-5. Add a separation between 40px horizontal elements.

Gutter horizontal

gx-2
gx-2
gx-2
gx-2
HTML
                                    
    <div class="grid item-2 gx-2">
        <div>gy-2</div>
        <div>gy-2</div>
        <div>gy-2</div>
        <div>gy-2</div>
    </div>
                                

Vertical axis spaces

To have greater control over the separation between elements on the Y axis, you can use specific vertical spacing classes. These classes allow to adjust the margins and the vertical filling between the objects, achieving a more precise and uniform disposition.

.guttery-n°

Normal class Mobile class Description
.gy-1 .gym-1 .Guttery-1. Add a separation between vertical elements of 8px.
.gy-2 .gym-2 .Guttery-2. Add a separation between 16px vertical elements.
.gy-3 .gym-3 .Guttery-3. Add a separation between vertical elements of 24px.
.gy-4 .gym-4 .Guttery-4. Add a separation between vertical elements of 32px.
.gy-5 .gym-5 .Guttery-5. Add a separation between vertical elements of 40px.

Gutter vertical

gy-2
gy-2
gy-2
gy-2
HTML
                                    
    <div class="grid item-2 gy-2">
        <div>gy-2</div>
        <div>gy-2</div>
        <div>gy-2</div>
        <div>gy-2</div>
    </div>
                                

Internal spacing

Adding internal space to your elements is very simple.You just have to add the class "p-n°"And it will be ready.The smallest class is "p-1", equivalent to 8px, while the maximum level is "p-5", equivalent to 40px.

.padding-n°

Normal class Mobile class Description
.p-1 .pm-1 .Padding-1. Add an internal spacing of the 8px elements.
.p-2 .pm-2 .Padding-2. Add an internal spacing of 16px elements.
.p-3 .pm-3 .Padding-3. Add an internal spacing of the 24px elements.
.p-4 .pm-4 .Padding-4. Add an internal spacing of the 32px elements.
.p-5 .pm-5 .Padding-5. Add an internal spacing of the 40px elements.

1 and 5 spaced

p-1
p-2
p-3
p-4
p-5
HTML
                                    
    <div class="p-1">p-1</div>  
    <div class="p-2">p-2</div> 
    <div class="p-3">p-3</div> 
    <div class="p-4">p-4</div> 
    <div class="p-5">p-5</div> 
                                

Internal spacing on the X-axis Update

New spacing utilities are included so that your design is even more flexible and clean.It is now possible to control horizontal padding with classes .px-1 to .px-5, which apply an 8px to 40px padding on the left and right sides.

.padding-n°

Normal class Mobile class Description
.px-1 .pmx-1 .Padding-1. Add an internal spacing of the 8px elements.
.px-2 .pmx-2 .Padding-2. Add an internal spacing of 16px elements.
.px-3 .pmx-3 .Padding-3. Add an internal spacing of the 24px elements.
.px-4 .pmx-4 .Padding-4. Add an internal spacing of the 32px elements.
.px-5 .pmx-5 .Padding-5. Add an internal spacing of the 40px elements.

1 and 5 spaced

px-1
px-2
px-3
px-4
px-5
HTML
                                    
    <div class="px-1">px-1</div>  
    <div class="px-2">px-2</div> 
    <div class="px-3">px-3</div> 
    <div class="px-4">px-4</div> 
    <div class="px-5">px-5</div> 
                                

Internal spacing on the Y-axis Update

New spacing utilities are included so that your design is even more flexible and clean.The vertical padding with classes .py-1 to .py-5, that apply an 8px range to 40px up and down.

.padding-n°

Normal class Mobile class Description
.py-1 .pmy-1 .Padding-1. Add an internal spacing of the 8px elements.
.py-2 .pmy-2 .Padding-2. Add an internal spacing of 16px elements.
.py-3 .pmy-3 .Padding-3. Add an internal spacing of the 24px elements.
.py-4 .pmy-4 .Padding-4. Add an internal spacing of the 32px elements.
.py-5 .pmy-5 .Padding-5. Add an internal spacing of the 40px elements.

1 and 5 spaced

py-1
py-2
py-3
py-4
py-5
HTML
                                    
    <div class="py-1">py-1</div>  
    <div class="py-2">py-2</div> 
    <div class="py-3">py-3</div> 
    <div class="py-4">py-4</div> 
    <div class="py-5">py-5</div> 
                                

Selective spaces

To apply selective spaced to the elements, you can do it in a simple way following these steps: if, for example, you need to add a space at the top of an element, simply add the class pt-1, pt-2, pt-3, pt-4 or pt-5. These classes correspond to the upper spaced of 16px, 24px, 32px and 40px, respectively.

Can I give different spaces to an element?

Yes, you can apply selective spaced to the elements following the same principle mentioned above.However, it will be necessary to add other classes to the element to achieve it.For example, if you want to establish an 8px upper spacing and a 40PX spacing to the right, you will have to apply two classes to the element in this way: class=".pt-1 .pr-5". In this way, you can assign spaces other than the same element.

.padding(s)-n° (Selective)

Normal class Mobile class Description
.pt-n° .pmt-n° .Padding-Top-Number. Add a space superior to the element.The number of the number determines the size of the space, which can be 8px, 16px, 24px, 32px or 40px.
.pr-n° .pmr-n° .Padding-Right-Number. Add a right space to the element.The number of the number determines the size of the space, which can be 8px, 16px, 24px, 32px or 40px.
.pb-n° .pmb-n° .Padding-bottom-Number. Add a lower space to the element.The number of the number determines the size of the space, which can be 8px, 16px, 24px, 32px or 40px.
.pl-n° .pml-n° .Padding-left-Number. Add a left space to the element.The number of the number determines the size of the space, which can be 8px, 16px, 24px, 32px or 40px.

Selective spaces

pt-5
pr-5
pb-5
pl-5
HTML
                                    
    <div class="pt-5">pt-5</div> 
    <div class="pr-5">pr-5</div> 
    <div class="pb-5">pb-5</div>  
    <div class="pl-5">pl-5</div>
                                

Margins to the elements

Adding margins to the elements is very easy.You just have to add the class "m-n°" And it will be ready.The smallest class is "m-1", equivalent to 8px; "m-2" to 16px; "m-3" to 24px; "m-4" to 32px; and "m-5" to 40px.

.margin-n°

Normal class Mobile class Description
.m-auto .m-auto .Margin-auto. Center the element, it must have a defined width.
.m-1 .mm-1 .Margin-1. Add an external spacing to the 8px elements.
.m-2 .mm-2 .Margin-2. Add an external spacing to 16px elements.
.m-3 .mm-3 .Margin-3. Add an external spacing to the 24px elements.
.m-4 .mm-4 .Margin-4. Add an external spacing to the 32px elements.
.m-5 .mm-5 .Margin-5. Add an external spacing to the 40px elements.

1 and 5 margins

m-1
m-2
m-3
m-4
m-5
HTML
 
    <div class="m-1">m-1</div>   
    <div class="m-2">m-2</div>  
    <div class="m-3">m-3</div>  
    <div class="m-4">m-4</div>  
    <div class="m-5">m-5</div> 
                        

Selective margins

To add selective margins to the elements, you can do it in a simple way following these steps: if, for example, you need to add a margin at the top of an element, simply add the class mt-1, mt-2, mt-3, mt-4 or mt-5. These classes correspond to the higher margins of 16px, 24px, 32px and 40px, respectively.

Can I give different margins to an element?

Yes, you can apply selective margins to the elements following the same previously mentioned approach.However, you will need to add other classes to the element to achieve it.For example, if you are looking to establish an 8PX upper margin and a 40PX margin to the right, you will need to apply two classes to the element in this way: class=".mt-1 .mr-5". In this way, you can assign margins other than the same element.In addition, instead of "margin", use "selective margin."

.margin(s)-n° (Selective)

Normal class Mobile class Description
.mt-n° .mmt-n° .Margin-Top-Number. Add a higher margin to the element.The number of the number determines the size of the margin, which can be 8px, 16px, 24px, 32px or 40px.
.mr-n° .mmr-n° .Margin-Right-Number. Add a right margin to the element.The number of the number determines the size of the margin, which can be 8px, 16px, 24px, 32px or 40px.
.mb-n° .mmb-n° .Margin-bottom-Number. Add a lower margin to the element.The number of the number determines the size of the margin, which can be 8px, 16px, 24px, 32px or 40px.
.ml-n° .mml-n° .Margin-left-Number. Add a left margin to the element.The number of the number determines the size of the margin, which can be 8px, 16px, 24px, 32px or 40px.

Selective margins

mt-4
mr-4
mb-4
ml-4
HTML
                                    
    <div class="mt-4">mt-4</div>  
    <div class="mr-4">mr-4</div>   
    <div class="mb-4">mb-4</div>  
    <div class="ml-4">ml-4</div>