This one is really easy. Yay!
Plus, I thought that if someone were to use the filterable portfolio module, and wanted to center or justify the buttons, then.. yeah.. I’d assume that’s it.
This means that you won’t have to add custom classes or anything.
It’s REALLY simple this time.
To center the buttons like this:
Copy paste this snippet into the custom CSS field in the theme options.
.et_pb_filterable_portfolio .et_pb_portfolio_filters { display: flex; justify-content: center; } .et_pb_filterable_portfolio .et_pb_portfolio_filters li { margin: 0 4px; }
Done.
To justify the buttons like this:
Copy paste this snippet into the custom CSS field in the theme options.
.et_pb_filterable_portfolio .et_pb_portfolio_filters ul { display: flex; justify-content: space-between; width: 100%; } .et_pb_filterable_portfolio .et_pb_portfolio_filters.clearfix:after, .et_pb_filterable_portfolio .et_pb_portfolio_filters.clearfix .clearfix:after { display: none; }
[sc name=”customcss”]
I think that was the simplest tutorial I’ve published so far. wow!
[sc name=”learn css”]
[sc name=”responsive-ad”]
[sc name=”podcast”]
Photo by Thomas Martinsen on Unsplash