Using the WP flexbox grid


A ul is given the following classes: class=”is-flex-container columns-3 wp-block-post-template is-layout-flow”

CSS being applied is

.wp-block-post-template {
    list-style: none;
    margin-bottom: 0;
    margin-top: 0;
    max-width: 100%;
    padding: 0;
} {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25em;
} li {
    margin: 0;
    width: 100%;
@media (min-width: 600px)>li {
    width: calc(33.33333% - 0.83333em);

Search the site

Share this page:


Subscribe to get regular news and updates

  • This field is for validation purposes and should be left unchanged.