Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Container Alignment and Styling

  • Dear,

    I am currently working on a web design project and I have structured a container within another container. My goal is to apply a full-width background color to the outer container while setting a maximum width for the inner container, aligning it with the page content.

    Here’s what I have implemented so far: I set the maximum width of the inner container to 1280px (global). This adjustment seems to work for controlling the width, but the container is not centered as intended. Could you advise me on how to properly center the inner container within the outer one?

    Thank you for your assistance.

    Kind regards,


  • Hi there,

    Set the inner container’s margin-left and margin-right to auto to center it.

    Some container examples here:

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.