Site logo

Archived topic

possible to add container to exisiting blocks

5 replies · Started by ken on January 4, 2021

Viewing posts 1–6 of 6

Hi there,

I am wondering if it's possile to add a container (in generateblock) for blocks/elements that already created or would I need to recreate everything?

I realized that i need an additional container in this page to have a max width of a wrapper for all the circle. Currently, it's a column that'll fill up the page and hence the text below the circle would be too long, i also tried to have a max width for the text but it's doesn't work as the circles will take the full width of the page.

Thanks!

Hi Leo,

Ah the container comes with a inner container, ok thanks!

Is it also possible to set the inner container to center the whole container? It seems that the container is slightly to the left, maybe it's because of the column option?

Hi Ken,

The paragraph you added are not using Headline Blocks from GenerateBlocks, so it inherit the margin from the theme.

You have 2 options here (I would recommend option 1):

1) Redo the paragraph using Headline Block from GB (blue icon)
https://docs.generateblocks.com/article/headline-overview/

2) Add this CSS to center the text:

p.circle, p.has-text-color {
    margin-left: auto;
    margin-right: auto;
}

Let me know :)

Hi Ying,

Running out of time, so i took the easier option 2.

Thanks!

You are welcome :)

This archived topic is closed to new replies.