g-content
class.g-content
class. That's how the space between the elements is achieved.g-content
class (it comes from the Gantry 5 core):.g-content {
margin: 0.625rem;
padding: 0.938rem;
}
g-content
class globally because it will affect the spacing of all elements on your website. You should modify it on as little scope as possible, meaning that you should be as specific as possible. You can do that by using a custom class and then write your code in the custom.scss like that:.custom-margin-left {
.g-content {
margin-left: 5px;
}
}
.custom-margin-right {
.g-content {
margin-right: 5px;
}
}
nomarginleft
, nomarginright
, nomargintop
, nomarginbottom
, nopaddingleft
, nopaddingright
, nopaddingtop
and nopaddingbottom
.You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »