Tagged: 1 column, portfolio grid, side by side
hi
I am using the 1 column side by side portfolio grid to display a music program.
I would like to make a gap between the portfolio items.
I found the code:
@media only screen and (max-width: 767px) {
.responsive #top .container .av-content-small, .responsive #top #wrap_all .flex_column, .responsive #top #wrap_all .av-flex-cells .no_margin {
margin: 0;
margin-bottom: 0px;
margin-bottom: 20px;
width: 100%;
}
}
It seems to work – is that correct?
thanks
Nancy
Hey Munford,
Thank you for the inquiry.
The code you found is too general and will likely affect other elements on the page, not just the portfolio grid.
A cleaner approach is to add a custom css class to your portfolio element and target that instead. You can do this by opening the portfolio element in the layout builder, go to the “Advanced” tab and add a custom class name there (e.g., av-music-portfolio). Then add your spacing rule to Enfold > General Styling > Quick CSS:
#top .av-music-portfolio .isotope-item {
margin-bottom: 20px;
}
This way the rule only applies to that specific portfolio and nothing else on the site.
For more details on adding custom css classes in Enfold, please refer to the documentation:
— https://kriesi.at/documentation/enfold/add-custom-css/
Let us know if the issue persists.
Best regards,
Ismael
