This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Using Grid properties inside the Editor-Widget

7 years ago · Last reply by Andrew Misplon 7 years ago

Hello Folks!
I’m trying to implement grid-properties in a Widget. (Pagebuilder)

I’ve created some declarationblocks inside the custom style.css:

.bluebox {
    width: 250px;
    height: auto;
    margin: 0px 20px 40px 20px;
    padding:5px 20px 20px 20px;
    color: #ffffff;
    background-color: #0062C7;
}

.bluebox-container{
  display:flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap:wrap;
}	

The i gave the widget the bluebox-container class

Then i created div’s inside the widget:

<div class=bluebox><h1>Hack #1</h1>Lorem ipsum dolor sit amet</div>
<div class=bluebox><h1>Hack #2</h1>Lorem ipsum dolor sit amet</div>
<div class=bluebox><h1>Hack #3</h1>Lorem ipsum dolor sit amet</div>

But finally, the items inside the container now arrange as columns rather as rows.

I’ve tested it inside a sandbox-file i’ve created in brackets.

My question is: How can i implement flex-grids inside a editor-widget? I’ve also tried to wrap the inside of a but the result is the same.

Many thanks in advance!
Breezy

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 7 years, 5 months ago

    Hi Breezy

    Thanks for reaching out.

    Page Builder by SiteOrigin uses Flexbox for row, cell and widget layouts, if you’re implementing an additional Flexbox layout within the existing layout, that’s something you’d need to keep in mind. We’d love to dive into this problem with you, unfortunately, it’s a bit beyond the support scope we’re able to offer here on the forums. Sorry, I don’t have better news.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread